Fix fatal error, `empty()` only supports variables (prior to PHP 5.5)
Merge pull request #2255 from GeertDD/fatal_empty

Fix fatal error, `empty()` only supports variables (prior to PHP 5.5)