Hide empty modules for smart content in drag and drop editor

I was able to hide custom email modules by using the Boolean Field as a “Show Module” switch as a wrapper around all my HTML. So with the smart content, the default is set to hide the entire module and when enrolled in a list to show that particular module.