Avoid routes duplication ver 3.12.1

I let users write part or whole route
Is there any method to check if the route generate duplicates before to register it ?
Would be perfect if it also possible to get which pattern is causing duplication