public function requestOptionsHas(array $requestOptions, $key)
    {
        return isset($requestOptions[$key]) &&
            is_array($requestOptions[$key]) &&
            count($requestOptions[$key]) > 0;
    }
public function requestOptionsHas(array $requestOptions, $key)
    {
        return isset($requestOptions[$key]) &&
            is_array($requestOptions[$key]) &&
            count($requestOptions[$key]) > 0;
    }
public function requestOptionsHas ( array $ requestOptions , $ key ) { return isset ( $ requestOptions [ $ key ] ) && is_array ( $ requestOptions [ $ key ] ) && count ( $ requestOptions [ $ key ] ) > 0 ; }
Check if request options has the given key option.

@param array  $requestOptions
@param string $key

@return bool
Check if request options has the given key option .