final public function hasConfig($key = null)
    {
        $config = $this->getConfig();

        if (is_null($key)) {
            return !empty($config);
        } else {
            return array_key_exists($key, $config);
        }
    }
final public function hasConfig($key = null)
    {
        $config = $this->getConfig();

        if (is_null($key)) {
            return !empty($config);
        } else {
            return array_key_exists($key, $config);
        }
    }
final public function hasConfig ( $ key = null ) { $ config = $ this -> getConfig ( ) ; if ( is_null ( $ key ) ) { return ! empty ( $ config ) ; } else { return array_key_exists ( $ key , $ config ) ; } }
Checks whether either configuration key exists or config is not empty

@param string $key
@return boolean Depending on success
Checks whether either configuration key exists or config is not empty