It's checked 3 lines below ;)
```javascript```
    if (!cert) {
      log.debug('NS_AS::onNewPushMessage --> Rejected. AppToken not found, dropping notification');
      return callback(errorcodesAS.BAD_URL_NOT_VALID_APPTOKEN);
    }
```