either:

if (%variable == $null) { } (The best way IMO)
if (!%var) { } (Not such a good way. The variable could contain a $null, false, or a 0 and still pass [meaning it doesn't have to be unset])