結果 : check if attribute exists python class