src/Validator/Validator.php
protected function isIterable(...$args)
    {
        foreach ($args as $arg) {
            if (!is_array($arg) && !$arg instanceof \IteratorAggregate) {
                return false;
            }
        }

        return true;
    }
protected function isIterable(...$args)
    {
        foreach ($args as $arg) {
            if (!is_array($arg) && !$arg instanceof \IteratorAggregate) {
                return false;
            }
        }

        return true;
    }
protected function isIterable ( ... $ args ) { foreach ( $ args as $ arg ) { if ( ! is_array ( $ arg ) && ! $ arg instanceof \ IteratorAggregate ) { return false ; } } return true ; }
Checks if the specified argument is a valid iterable.

@todo After updating to 7.1 validate with is_iterable().

@param array|object $arg The argument to validate.

@return bool True if the specified argument is valid. False if it does not.
Checks if the specified argument is a valid iterable .