結果 : python check if item has attribute