Just a code fixer. BTW, the first assertion is enough: if $x is null, $x will match == ""