結果 : check if object attribute exists python