Please add here:
```javascript
    if (!mobileConnection)
      return;
```