public function removePlaceholder($name)
    {
        if (empty($name)) {
            return;
        }
        $_name = $name;
        list($name, , $template) = $this->getParentPlaceholder($name);
        if (!isset($template)) {
            $template = $this;
        }

        if ($template === false) {
            if ($this->throwException) {
                throw new TemplateException("Unknown scope: {$name}");
            }
            return;
        }
        // removes all placeholders by scope
        if (empty($name)) {
            $this->removeAllPlaceholders($_name);
            return;
        }
        unset($template->placeholders[$name]);
    }