Eww.... Checking against $null instead of using the negation operator ! (!$3) / in a remote script.
3/10