Check if enemy has a state, ANY state?

Hello,

I am creating an item that can be used against enemies to remove a state of choice.
The player will be able to tactically decide which status effects to maintain or dispel on a given enemy.

How can I use script to check if an enemy has a state, ANY state?

I have experience using script calls to check if enemies have certain statuses applied, such as Knockout, Paralyzed, etc. But I'm hoping there is a way to see if an enemy has any available states to remove, so that the item will only affect, well, affected enemies! Thanks in advance!

Original thread: https://forums.rpgmakerweb.com/threads/check-if-enemy-has-a-state-any-state.127533/