public function validate(Request $request)
    {
        $prefix = $this->filterAndExplode($this->prefix);

        $path = $this->filterAndExplode($request->getPathInfo());

        return ! \is_null($this->prefix) && $prefix == \array_slice($path, 0, \count($prefix));
    }