public function removeHelper($funcName) { if (isset($this->helperFunctions[$funcName])) { unset($this->helperFunctions[$funcName]); } else { throw new \LogicException('The function "' . $funcName . '" is not associated with the template.'); } }