結果 : check if array has only one element javascript