結果 : javascript check if collection is empty