bool is_bool ( mixed $var )
<?php $x=false; echo is_bool($x); ?>
<?php $y=false; if (is_bool($y)) echo 'this is a boolean type.'; else echo 'this is not a boolean type.'; ?>