A way to check if Party Command window is active

Is there a command which allows me to check if Party Command window (Fight/Escape) in battle is currently active? Something like ".isPartyCommandActive()"?

EDIT: Found a solution by myself by make use of "Scene_Battle.prototype.isAnyInputWindowActive" 😀
isAnyInputWindowActive would be true if any window is active -

If you want specifically the Party Command window, you can use this, which returns either true or false.
Code:
SceneManager._scene._partyCommandWindow.active
Thank you! That should be more specific! 😀

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-check-if-party-command-window-is-active.99433/