Prevent Duplicate Collections

Is there a way to prevent creating a collection with the same name. For instance I have a simple button that creates a new “company” collection as well as names it from an input. However I don’t want the company to be added more than once as a collection. So I would like for the button to be disabled or something similar when the input for the company name already matches a company collection with that same name.


I also need this solution, to prevent a record with the same name from being added.