Can Titles be hidden if no entity is listed?

Just had a question, I have a device cards and it works very well, it only shows entities that are in the specified state. I was wondering if when there’s no entities listed is there a way to hide the card?