Fix format number zero return empty string instead of zero

why don't you just test if the variable isn't empty ?

```php
if (empty($number)) { return ""; }
```