Updated .has() method

Made faster .has(), and added an overload to take a predicate.