Iterable contains() method.