結果 : condition if array is empty javascript