結果 : javascript check if array has only one element