if ( $2 == $null ) would be more appropriate to determine if it's non existant