add has_attributes? method