fix fatal error on php 5.3

php 5.3 not allowed function call in empty()
Merge pull request #10 from bladeofsteel/patch-1

fix fatal error on php 5.3