private function containsValidCryptoConfig($algorithmConfig, $type)
    {
        return (
            array_key_exists($type, $algorithmConfig)
            && \is_array($algorithmConfig[$type])
            && array_key_exists('key', $algorithmConfig[$type])
            && array_key_exists('service', $algorithmConfig[$type])
        );
    }
private function containsValidCryptoConfig($algorithmConfig, $type)
    {
        return (
            array_key_exists($type, $algorithmConfig)
            && \is_array($algorithmConfig[$type])
            && array_key_exists('key', $algorithmConfig[$type])
            && array_key_exists('service', $algorithmConfig[$type])
        );
    }
private function containsValidCryptoConfig ( $ algorithmConfig , $ type ) { return ( array_key_exists ( $ type , $ algorithmConfig ) && \ is_array ( $ algorithmConfig [ $ type ] ) && array_key_exists ( 'key' , $ algorithmConfig [ $ type ] ) && array_key_exists ( 'service' , $ algorithmConfig [ $ type ] ) ) ; }
Check if an algorithm configuration contains a valid crypto configuration.

@param array  $algorithmConfig
@param string $type            'decryption' or 'encryption'

@return bool
Check if an algorithm configuration contains a valid crypto configuration .