結果 : how to tell if array is empty javascript