Refactoring IE<9 test to be a simple function.