結果 : check if an object has a property python