Translations:Manual:Coding conventions/PHP/262/en

The $empty function should only be used when you want to suppress errors. Otherwise just use  (boolean conversion).