public function getVariable($key) { if (isset($this->variables[$key])) { return $this->variables[$key]; } return false; }