Rewrite $a ?: $b to empty($a) ? $b : $a if $a is a variable

Isn't that a behavior change? Before, if $a didn't exist, there were notice, but after, there's no notice anymore.