結果 : check if input file is not empty javascript