How to check if battle members include specific actor

Hi everyone, I want to remake my guild system on MV by using Custom Page Conditions, but for that I need to know which script call check if "battle members" include an specific actor?. Battle members is different from party check. The RGSS3 equivalent of this call is:

Code:
unless $game_party.battle_members.include?($game_actors[X])

Thanks in advance
$gameParty.battleMembers().contains($gameActors.actor(actorId))


This should work.
if actor is your actor object, you can use actor.isBattleMember()


If you only have the actor id, you can use $gameActors.actor(id).isBattleMember()


The suggestion above will work, but it's already encompassed in the isBattleMember() function that's already provided.
Thanks Shaz, it worked fine!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-if-battle-members-include-specific-actor.70133/