private function isPathAccessible($path)
    {
        $uri = $this->httpUtils->generateUri($this->requestStack->getMasterRequest(), $path);

        /** @var \Buzz\Message\Response $res */
        $res = $this->browser->get($uri);
        if ($res->isSuccessful()) {
            return true;
        }

        return false;
    }