You're wrong. No one does it 🙂
However, one often does
$mail = mail("joe@joe.com", "hello joe", "testing joe");
if($mail){
foo($bar);
}
That's because most functions (including mail()) return some values, that show, whether function was executed succesfully or not. Or, of course, it may return something more interesting...