How to check the party position of a certain party member?

MV is a bit different than other rpg maker engines. I want to see if a certain party member is party leader.

I tried something like this, but no dice.

Code:
$gameParty.members(0) == $gameActors.actor(2)


Can anyone suggest a fix?
You're close.
.members() is a function that doesn't take any inputs. It also outputs an array, so you want to check the 0th item of the array, rather than feed 0 as an input.
Code:
$gameParty.members()[0] === $gameActors.actor(2);
Thanks *hug/noogies*

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-the-party-position-of-a-certain-party-member.92091/