in reply to Comparing undefined values
Update: $x ~~ '' works as well, according to the patch's author. They don't even warn.