結果 : check if attribute exists in class python