Booleans lead to empty components

Hi there!

We are currently using the boolean feature of Figma to hide other additions to a pill component and reduce the number of variants we would have to create.

I observed that hiding the lead icon and the label leaves us with an empty pill component that shouldn’t be allowed. Does anyone know a fix for this? Is it possible that when both options are disabled, either the component is hidden or toggles between one of them?

Attached is a screenshot to give a better idea