protected function alreadyInParameters($class, array $parameters)
    {
        $result = Arr::first($parameters, function ($key, $value) use ($class)
        {
            return ($value instanceof $class);
        });

        return ! is_null($result);
    }
protected function alreadyInParameters($class, array $parameters)
    {
        $result = Arr::first($parameters, function ($key, $value) use ($class)
        {
            return ($value instanceof $class);
        });

        return ! is_null($result);
    }
protected function alreadyInParameters ( $ class , array $ parameters ) { $ result = Arr :: first ( $ parameters , function ( $ key , $ value ) use ( $ class ) { return ( $ value instanceof $ class ) ; } ) ; return ! is_null ( $ result ) ; }
Determine if an object of the given class is in a list of parameters.

@param  string  $class
@param  array  $parameters
@return bool
Determine if an object of the given class is in a list of parameters .