Adds hasSuperviewWithClass: on UIView