parentShouldConditionallyClear() {
    let currentParent = this.parent;
    while (currentParent) {
      if (
        (currentParent.allowData && currentParent._conditionallyClear) ||
        (!currentParent.allowData && currentParent._conditionallyHidden)
      ) {
        return true;
      }
      currentParent = currentParent.parent;
    }
    return false;
  }
Returns if the parent should conditionally clear.
@returns {boolean} - If the parent should conditionally clear.