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

        if (is_null($key)) {
            return !empty($config);
        } else {
            return array_key_exists($key, $config);
        }
    }