結果 : check if list empty javascript