maybe 
```
var emergencyOnly = (conn.voice && conn.voice.emergencyCallsOnly); 
```
would be safer, we got bitten already by not checking this.