Can't this just be `if (this.constructor.rootKey)`?