public static function isEncodingSupported($encoding)
    {
        $encoding = strtolower($encoding);

        if (isset (static::supportedEncodings()[$encoding])) {
            return true;
        }

        return false;
    }