How to make a blocked path depending on the party leader's level?

I'm trying to make a path were the player can only go in if they're lv.3 or above. But the variable to check the level is actor based, so i'll just need to do a big variable and conditional branches to every single character in the game, or just straight up forbid the player to change characters around(which i really don't want to do)

is there a script that i can use in the variable that checks the level of the LEADER, instead of a set actor?
$gameParty.leader().level
$gameParty.leader().level
ooooh i actually tried this one, but i forgot the (), thanks m8

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-blocked-path-depending-on-the-party-leaders-level.137963/