I'd move this check to  `onMessageFailed` before calling `ifRilDisabled` in, and then call `showSimCardError` that would be more simple.

And this way you don't need to change `ifRilDisabled` at all.