can we make this method more simple and readable

```js
var importSDErrorMessage = '';
var exportSDErrorMessage = '';
if (!cardAvailable) {
        importSDErrorMessage = _('noMemoryCardMsg');
        exportSDErrorMessage = _('noMemoryCardMsgExport');
        if (cardShared) {
           importSDErrorMessage = exportSDErrorMessage = _('sdUMSEnabled');
       }
}

importSDOption.querySelector('p.error-message').textContent = importSDErrorMessage;
exportSDOption.querySelector('p').textContent = exportSDErrorMessage;
```