`this.dependentAttribute !== undefined` can be just `this.dependentAttribute`. Also I think you can safely use `===` for comparing two strings.