Może by tak: `return ($count !== FALSE) ? $count : NULL;`?