if (%x == $null) will only be $true when %x is $null.
if (!%x) will be $true if %x is 0, $false or $null

Fairly big difference.