Update to use the predicate methods to query if an attribute exists.