結果 : javascript check if array has element at index