結果 : python check if list index is empty