code: function isInstanceOf(cls) {
          var i, l, bases = this.constructor._meta.bases;
          for (i = 0, l = bases.length; i < l; i += 1) {
              if (bases[i] === cls) {
                  return true;
              }
          }
          return this instanceof cls;
      }
docs: emulation of "instanceof"