Ignored filtering for boolean fields setted as "0"

The `isEmpty` method used the `empty` PHP function, which returns `true` when is used on a 0 (integer) or on a "0" (string); you can check the official documentation [here](http://php.net/manual/en/function.empty.php).