Update BaseEngine.php

Issue #92 - bug with '0' value because of PHP empty($var) function behavior.
Merge pull request #93 from yfktn/master

Update BaseEngine.php