Should be more concise with,

```js
if (conn.voice && conn.voice.network) { 
 ...
} else if ((conn.iccInfo)
}
```