public function getVariable($name, $default = null)
    {
        if (!array_key_exists($name, $this->variables)) {
            return $default;
        }
        return $this->variables[$name];
    }