code: function (id) {
          var self = this;
          if (typeof id === 'string') {
            return this.queue.indexOf(id) !== -1;
          }
          if (_.isArray(id)) {
            return _.some(id, function (val) {
              return self.queue.indexOf(val) !== -1;
            });
          }
          return false;
        }
docs: Check ID(s) in command queue