check that matchMedia exists without breaking IE