Now using hasattr.