public function setGlobal($name, $value, $options = []) {
        if (isset($options['namespace'])) {
            $this->getEnvironment()->addGlobal($options['namespace'], [$name => $value]);
        } else {
            $this->getEnvironment()->addGlobal($name, $value);
        }   
    }