Added `boolval` for PHP 5.4.