Nit, the following would be enough:
```javascript
  if (!number && (!voicemail || !voicemail.number)) {
    // TODO: …
    return;
  }
```