public function removeRouteByName(string $name) : bool
    {
        if ($route = $this->getRouteByName($name)) {
            unset($this->routes[$route->getIdentifier()]);

            return true;
        }

        return false;
    }