PHP的不好之处

即使有以下这样的函数,甚至都没有警告,这真是有点……
今天我碰到了这个问题。

<?php
function hoge($a){
        if($a) return true;
}
echo gettype(hoge(true)).chr(10);
echo gettype(hoge(false)).chr(10); 
?>
boolean
NULL