protected function driverExcludedByOptions(string $driver, array $options): bool
    {
        return (! empty($options['only']) && ! \in_array($driver, (array) $options['only'])) ||
            (! empty($options['except']) && \in_array($driver, (array) $options['except']));
    }
protected function driverExcludedByOptions(string $driver, array $options): bool
    {
        return (! empty($options['only']) && ! \in_array($driver, (array) $options['only'])) ||
            (! empty($options['except']) && \in_array($driver, (array) $options['except']));
    }
protected function driverExcludedByOptions ( string $ driver , array $ options ) : bool { return ( ! empty ( $ options [ 'only' ] ) && ! \ in_array ( $ driver , ( array ) $ options [ 'only' ] ) ) || ( ! empty ( $ options [ 'except' ] ) && \ in_array ( $ driver , ( array ) $ options [ 'except' ] ) ) ; }
Determine if the given options exclude a particular driver.

@param  string  $driver
@param  array  $options

@return bool
Determine if the given options exclude a particular driver .