public function get($variable, $htmlEncode = true)
    {
        $value = null;

        if ( isset($this->variables[$variable]) ) {
            $value = $this->variables[$variable][$htmlEncode ? 'safe' : 'unsafe'];
        }

        return $value;
    }