SyntaxFix
Write A Post
Hire A Developer
Questions
if (empty($var) && $pieces[$var] != '0') { //do something }
In my case this code worked.