protected function clearMiddleware(string $group = null)
    {
        if ($group === null) {
            $this->middleware = new Group;
        } else {
            unset($this->middleware[$group]);
        }
        return $this;
    }