public static function createFromGlobals(array $globals)
    {
        $env = new \Sofi\Base\Collection($globals);
        if (is_array($env['slim.files']) && $env->has('slim.files')) {
            return $env['slim.files'];
        } elseif (isset($_FILES)) {
            return static::parseUploadedFiles($_FILES);
        }
        return [];
    }