Valid Facet values

I am adding a facet filter from a query string value (like: /search?category=value). How can I tell if a facet value is valid?

I am using VueInstantSearch and have done some customizing widgets.