So if $X has any value then

NOT $X = 0

If $X is not null (has any value at all)

NOT $X = 1

I've got it!?!