If you are tearing your hair out trying to figure out why empty($object-property) = true when var_dump($object-property) outputs a value – this might be the problem. It arises if you are using the magic __get() method to serve up object properties. Apparently PHP’s empty() function actually uses isset() to determine if the property is empty [...]
The post PHP, __get() and empty() Not Working As You Expect? – Solution appeared first on Edmonds Commerce. Edmonds Commerce are Magento specialist developers based in the UK.