Conditional confluence spacePage

Is there a way i can conditionally show a confluence:spacePage module.

There are spacepage settings that are stored and used by each module. For example, if there was a “useModuleA” value stored in the spacesettings that was set to false, the module would not display in the space.