src/Resolver.php
public function isCollection($middleware): bool
    {
        $isArray = is_array($middleware) && ! is_callable($middleware);
        return $isArray || $middleware instanceof Traversable || $middleware instanceof ArrayAccess;
    }
public function isCollection($middleware): bool
    {
        $isArray = is_array($middleware) && ! is_callable($middleware);
        return $isArray || $middleware instanceof Traversable || $middleware instanceof ArrayAccess;
    }
Checks to see if the given value has a lot of middleware or just one.

@param $middleware
@return bool