src/precore/util/Iterables.php
public static function contains(IteratorAggregate $iterable, $element) : bool
    {
        return Iterators::contains(Iterators::from($iterable->getIterator()), $element);
    }
public static function contains(IteratorAggregate $iterable, $element) : bool
    {
        return Iterators::contains(Iterators::from($iterable->getIterator()), $element);
    }
Returns true if iterable contains any object for which Objects::equal(element, object) is true.

@param IteratorAggregate $iterable
@param $element
@return boolean