結果 : check for empty list javascript