Check for Modernizr using typeof.