public function has($key)
    {
        $data = $this->parameters;

        foreach (explode('.', $key) as $pkey) {
            if (!array_key_exists($pkey, $data) || !is_array($data)) {
                return false;
            }

            $data = $data[$pkey];
        }

        return true;
    }
public function has($key)
    {
        $data = $this->parameters;

        foreach (explode('.', $key) as $pkey) {
            if (!array_key_exists($pkey, $data) || !is_array($data)) {
                return false;
            }

            $data = $data[$pkey];
        }

        return true;
    }
public function has ( $ key ) { $ data = $ this -> parameters ; foreach ( explode ( '.' , $ key ) as $ pkey ) { if ( ! array_key_exists ( $ pkey , $ data ) || ! is_array ( $ data ) ) { return false ; } $ data = $ data [ $ pkey ] ; } return true ; }
Returns true if the parameter is defined.

@param string $key The key

@return bool true if the parameter exists, false otherwise
Returns true if the parameter is defined .