Use Conditional Branch to check if message window is open

Hi, so in the project I'm working on right now, I decided to make a fully custom menu that uses a conditional branch parallel process to open and close. The issue that I'm facing is that it will open when I press the menu button if in a message box or choice window. I'm well aware I can just turn off the switch before I open a message window, but I already have a lot of text in the game and would rather not go back and turn off the switch for every single event. If anybody knows a way to do this, I would love to know! If there's any other information needed to help please let me know and I'll respond as quickly as possible.

(Also if there's a way to check if an event is processing that might even be better)
Thanks,
Spak
A quick search led me to this:
$gameMessage.isBusy()
A quick search led me to this:
$gameMessage.isBusy()
This seems to work great! Thank you!
Thread closed oi!

Original thread: https://forums.rpgmakerweb.com/threads/use-conditional-branch-to-check-if-message-window-is-open.121315/