MV Script to check if a Party member is on the party to use with Yanfly's Skillcore

I need help, you see, Im trying to use a Custom Requiriment for a skill

But the idea is to make it so the skill is only useable if a specific party member is on the party

Im not sure how I should write that script part

Its like, i'll write a simplified idea to describe this
----
<Custom requiriment>
If (code neededto check if actor 2 is on the party)
True

Else
False
</Custom requiriment>
----

I only need the code to check if the actor is on the party, thats all, I already know how to use the custom requiriment but I dont know how can I tell the engine to check for that
try
Code:
value = $gameParty.members().contains($gameActors.actor(2))
try
Code:
value = $gameParty.members().contains($gameActors.actor(2))
Does not seem to work, even though I might be introducing it wrong

Do I need to add the "Value ="
Does not seem to work, even though I might be introducing it wrong

Do I need to add the "Value ="
Double check the spelling of requirement in your notetag (you have it written as requiriment above so just wanted to make sure of it):
JavaScript:
<Custom Requirement>
  value = $gameParty.members().contains($gameActors.actor(2));
</Custom Requirement>

I think .contains is deprecated so you may want to use .includes instead - though, either should work iirc since the corescripts uses .contains.

Original thread: https://forums.rpgmakerweb.com/threads/script-to-check-if-a-party-member-is-on-the-party-to-use-with-yanflys-skillcore.180172/