get if ancestor id exists