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