Added has_base attribute predicate.