How do I use a script to check if leader is NOT affected by a state?

I know about the code: $gameParty.leader().isStateAffected(X) to check if the leader IS affected. I'm just trying to find the opposite script for if they are *not* affected. I tried searching Google, but so far no luck yet.
I's the same - the code is a function that either returns true or false, and if the return is false the actor does not have the state
!($gameParty.leader().isStateAffected(X))

You just put an ! in front
That was fast. Thank you all for your responses.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-use-a-script-to-check-if-leader-is-not-affected-by-a-state.162021/