結果 : javascript check if index of array exists