Check if party a party slot has an actor in it or not?

Hello!
I'm using SRDudes Hudmaker and i want to make it so that parts of the hud will not be visible if a party slot has an actor in it. I know how to make it happen, I just don't know the javascript code/condition that i need to input in there.

Thanks for helping!
(also sorry if this isn't the right place for this)

EDIT: I found out how to do it! thanks for the help!
try

Code:
$gameParty.members()[slot ID] == null;
@Engr. Adiktuzmiko
this doesn't seem to work, instead of making parts of the HUD dissapear when an actor isn't in a slot, it just always makes the parts of HUD dissapear. (it also did this when i added ".actorId()" after the "[X]" (x represents the Id)
thanks for trying! it means a lot.

EDIT:
@Engr. Adiktuzmiko
Hey! I actually found out how to do it!
apperently Hud maker already adds the "== null;" at the end, it just doesn't show you.
sorry!
@DRG Glad you found the solution to the issue you were having! When possible, please edit your existing posts instead of "Double Posting" a few minutes later (posting multiple times in a row, without other people posting in the meantime, within 72 hours, is against forum guidelines). I've merged your posts together this time. Feel free to re-edit it as you see fit.
You could just use party size. If party size > 2, then slots 0, 1 and 2 will be filled. Unless you're using some party manager that lets you force people into specific slots that leave others blank in between.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-party-a-party-slot-has-an-actor-in-it-or-not.111087/