結果 : python check if object has nested attribute