src/Koldy/Config.php
public function has(string $key): bool
    {
        if (!is_array($this->data)) {
            throw new ConfigException('Unable to get config data when config wasn\'t loaded for config name=' . $this->name);
        }

        return array_key_exists($key, $this->data);
    }
public function has(string $key): bool
    {
        if (!is_array($this->data)) {
            throw new ConfigException('Unable to get config data when config wasn\'t loaded for config name=' . $this->name);
        }

        return array_key_exists($key, $this->data);
    }
public function has ( string $ key ) : bool { if ( ! is_array ( $ this -> data ) ) { throw new ConfigException ( 'Unable to get config data when config wasn\'t loaded for config name=' . $ this -> name ) ; } return array_key_exists ( $ key , $ this -> data ) ; }
Returns true if requested key exists in current configuration, false otherwise.

@param string $key

@return bool
@throws ConfigException
Returns true if requested key exists in current configuration false otherwise .