public function block($name, $value = null)
    {
        if ($value === null) {
            return isset($this->blocks[$name]) ? $this->blocks[$name] : null;
        }

        $this->blocks[$name] = $value;
    }