public function remove(string $name): self
    {
        if (!$this->exists($name)) {
            throw new LogicException(
                'The template function "' . $name . '" was not found.'
            );
        }

        unset($this->helpers[$name]);

        return $this;
    }