private function isAllowed(RequestInterface $request, array $route): bool
    {
        $allowed = true;

        if (false === empty($route['methods'])) {
            $allowed = in_array($request->getMethod(), (array)$route['methods']);
        }

        return $allowed;
    }