Simplify has_unmerged_paths