Fixed PHP 5.4 incompatibility in empty() call
Merge pull request #14 from vania-pooh/master

Fixed PHP 5.4 incompatibility in empty() call