[RMXP] Looking for a way to check whenever dialogue is up

I'm not certain if there's anything like this already in XP's default scripts, so I came here to wonder if the engine has any sort function or switch that checks for if text is up, so I can use it as a condition.

If there are none by default, I would like to know if there are any scripts that can do just that?
Ruby:
$game_temp.message_window_showing
Ruby:
$game_temp.message_window_showing
Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-looking-for-a-way-to-check-whenever-dialogue-is-up.157084/