public final boolean hasNext() {
      return next != header;
    }
This stack is a singly linked list, linked by the 'parent' field.
lottie/src/main/java/com/airbnb/lottie/parser/moshi/LinkedHashTreeMap.java