結果 : check index exists python