public function assign($key, $value = null)
    {
        if (! is_array($key) || $value instanceof Closure) {
            $this->vars[$key] = $value;
        } else {
            $this->vars = array_merge($this->vars, $key);
        }

        return $this;
    }