Update BaseEngine.php

Issue #92 - bug with '0' value because of PHP empty($var) function behavior.