This looks counter-intuitive. Why don't you compare to `""`, or state `if (!$lines)` ?