How can I check if the party have any status (state) at all?

Hi all!! Im using Yanfly plugin Skill Core: http://yanfly.moe/2015/10/13/yep-8-skill-core/

There is a feature that checks some requirements before making the skill available. I want the skill to be unavailable if no state is present on any party member, but I dont know how to check for it.

Something like:

Code:
if ($GameParty.isStateaffected(id)) {  
value = true;
 } else {
    value = false;
  }

Of course this code doesn`t work, just to give an idea.

Any help?

Thanks all!
if ($gameParty.members()[0]._states.length == 0 && $gameParty.members()[1]._states.length == 0 && $gameParty.members()[2]._states.length == 0 && $gameParty.members()[3]._states.length == 0) {
visible = true;
} else {
visible = false;
}
Thank you!!!

Edited: Hi @Poryg ! I thought it worked but, It always returns false, the if condition is never met and Im positive that the 4 actors are clean of states.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-check-if-the-party-have-any-status-state-at-all.87480/