Some coding standards indicate that the first branch should be more likely, while the else branch should handle more exceptional things.
But it is completely esoteric, choose what you want.
In my personal opinion, rather use
function is_numeric($number)
{
return preg_match("/^[0-9]+$/",$number);
}
since preg_match returns a boolean value.