added isEmpty to PathManager