Isn't better?
```
return (TelephonyManager.SIM_STATE_READY == tm.getSimState());
```