check for matchMedia before trying to be responsive