public function hasPath($name)
    {
        Deprecated::method(3.3, PathResolver::class);

        if (strpos($name, '/') !== false) {
            $parts = explode('/', $name);
            $name = array_shift($parts);
        }

        return array_key_exists($name, $this->paths) || array_key_exists($name . 'path', $this->paths);
    }