結果 : check if index exists in array python