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

The patch for this RFC: https://wiki.php.net/rfc/isset_ternary