code: public static function contains(IteratorAggregate $iterable, $element) : bool
      {
          return Iterators::contains(Iterators::from($iterable->getIterator()), $element);
      }
docs: Returns true if iterable contains any object for which Objects::equal(element, object) is true.
  
  @param IteratorAggregate $iterable
  @param $element
  @return boolean