code: function isMediaQuery(stylesheet) {
          if (!stylesheet) {
              if(DEBUG) $log.error('No stylesheet provided');
              return;
          }
          return !!(
            // Check for media query setting
            stylesheet.media
            // Check for media queries to be ignored
            && (mediaQueriesToIgnore.indexOf(stylesheet.media) === -1)
            // Check for matchMedia support
            && $window.matchMedia
          );
        }
docs: Is Media Query: checks for media settings, media queries to be ignore and match media support