結果 : check if an array index exists python