just do: 
```javascript
if (_iccManager && _iccManager.iccIds && _iccManager.iccIds.length) {
  _iccObj = _iccManager.getIccById(_iccManager.iccIds[0]);
}
```