How about:

```
if ( msie && isDefined(script.onreadystatechange) ) {
```