Extra condition so it doesn't crash in IE8