You'll have to code that logic yourself then. Likely, you can no longer use /window -wN to create your custom windows using your setup.

The switchbar behaviour is not a bug-- it returns whether the button in the switchbar is visible or not-- to you.. not to the switchbar. When the switchbar is hidden, can you see the button? If not, then the result is accurate.