public function hasKey($_)
    {
        try {
            $keys = array_reverse($this->getKeyArguments(func_get_args()));

            $array = $this->getArrayCopy();
            while (count($keys) > 0) {
                $key = array_pop($keys);
                if (! array_key_exists($key, $array)) {
                    return false;
                }
                $array = $array[$key];
            }
        } catch (Exception $exception) {
            return false;
        }

        return true;
    }
public function hasKey($_)
    {
        try {
            $keys = array_reverse($this->getKeyArguments(func_get_args()));

            $array = $this->getArrayCopy();
            while (count($keys) > 0) {
                $key = array_pop($keys);
                if (! array_key_exists($key, $array)) {
                    return false;
                }
                $array = $array[$key];
            }
        } catch (Exception $exception) {
            return false;
        }

        return true;
    }
public function hasKey ( $ _ ) { try { $ keys = array_reverse ( $ this -> getKeyArguments ( func_get_args ( ) ) ) ; $ array = $ this -> getArrayCopy ( ) ; while ( count ( $ keys ) > 0 ) { $ key = array_pop ( $ keys ) ; if ( ! array_key_exists ( $ key , $ array ) ) { return false ; } $ array = $ array [ $ key ] ; } } catch ( Exception $ exception ) { return false ; } return true ; }
Check whether the Config has a specific key.

To check a value several levels deep, add the keys for each level as a comma-separated list.

@since 0.1.0
@since 0.1.4 Accepts list of keys.

@param string|array $_ List of keys.

@return bool
Check whether the Config has a specific key .