This is a safer test for IE.