Use boolval() from PHP 5.5