結果 : check if has attribute python