Hacker News new | ask | show | jobs
by ericpp 635 days ago
It's a common mistake that newcomers to the language make. You assume empty is an empty string check when it's really a falsy check that is equivalent to: (!isset($var) || !$var)