src/precore/util/Iterables.php
public static function isEmpty(IteratorAggregate $iterable) : bool
    {
        return Iterators::isEmpty(Iterators::from($iterable->getIterator()));
    }
public static function isEmpty(IteratorAggregate $iterable) : bool
    {
        return Iterators::isEmpty(Iterators::from($iterable->getIterator()));
    }
Determines if the given iterable contains no elements.

@param IteratorAggregate $iterable
@return boolean