isIE = function (version) {
      var ver = getIEVersion();
      if (typeof version === 'undefined') {
          return !!ver;
      }
      return version === ver;
  }
Returns whether the used browser is Internet Explorer.

@param version Optional parameter to specify IE version