protected function getFromGlobal(string $name)
    {
        if (isset($GLOBALS[$name])) {
            return $GLOBALS[$name];
        }

        throw new \ErrorException(
            sprintf("Undefined global variable (%s) called!", $name));
    }