Avoiding empty() in PHP
The language construct empty() appears rather versatile. It’s like a Swiss army knife with a thousand blades, ready to hurt you if you grab it by the wrong end. Or a jack of all trades, master of none. Most of all, empty() is a poor communicator. I spot empty() in poorly-aged closed-source projects. I discover empty() in brand-new empty() again in open-source …

