public static function set($key, $value, $preferGlobal = false)
    {
        if (!isset(self::$_config[$key])) {
            return false;
        }

        if (!$preferGlobal && self::$_CurrentHTMLInstance && isset(self::$_CurrentHTMLInstance->$key)) {
            self::s3t(self::$_CurrentHTMLInstance->$key, $value);
        } else {
            if (class_exists('Xiphe\THEMASTER\core\THE')
                && class_exists(TM\THE::SETTINGS)
            ) {
                $prev = TM\THEWPSETTINGS::sGet_setting($key, XIPHE_HTML_TEXTID);
                self::s3t($prev, $value);
                TM\THESETTINGS::sSet_setting($key, XIPHE_HTML_TEXTID, $prev);
            } else {
                self::s3t(self::$_config[$key], $value);
            }
        }

        return true;
    }