How to Hide a Panel from RefinementList with zero results?

I already try hide the panel from the RefinementList when this don’t have any results.
I need to use a lot of differents types of Facets, so in my results not all the items have the same Facets so depends of the query, I need hide some Panels of my RefinementList when they don’t have any result from my research.

I’m using only React InstantSearch