public static function getFileExtension($name)
    {
        if (is_array($name)) {
            $name = array_pop($name);
        }
        $extension = static::splitFilename($name)[1];
        if (is_string($extension)) {
            $extension = strtolower($extension);
        }
        return $extension;
    }