protected function checkRequiredOptions(array $options)
    {
        array_walk(
            $this->supportedOptions,
            function ($supportedOptionData, $supportedOptionName, $options) {
                if (isset($supportedOptionData[1])
                    && true === $supportedOptionData[1]
                    && empty($supportedOptionData[0])
                    && !array_key_exists($supportedOptionName, $options)
                ) {
                    throw new InvalidServiceOptionsException(
                        'Required validation option not set: ' . $supportedOptionName,
                        1456397839
                    );
                }
            },
            $options
        );
    }
protected function checkRequiredOptions(array $options)
    {
        array_walk(
            $this->supportedOptions,
            function ($supportedOptionData, $supportedOptionName, $options) {
                if (isset($supportedOptionData[1])
                    && true === $supportedOptionData[1]
                    && empty($supportedOptionData[0])
                    && !array_key_exists($supportedOptionName, $options)
                ) {
                    throw new InvalidServiceOptionsException(
                        'Required validation option not set: ' . $supportedOptionName,
                        1456397839
                    );
                }
            },
            $options
        );
    }
protected function checkRequiredOptions ( array $ options ) { array_walk ( $ this -> supportedOptions , function ( $ supportedOptionData , $ supportedOptionName , $ options ) { if ( isset ( $ supportedOptionData [ 1 ] ) && true === $ supportedOptionData [ 1 ] && empty ( $ supportedOptionData [ 0 ] ) && ! array_key_exists ( $ supportedOptionName , $ options ) ) { throw new InvalidServiceOptionsException ( 'Required validation option not set: ' . $ supportedOptionName , 1456397839 ) ; } } , $ options ) ; }
Will check if the required options are correctly filled.

@param array $options
@throws InvalidServiceOptionsException
Will check if the required options are correctly filled .