public boolean isPeekInitialized() {
    return HARegionQueue.peekedEventsContext.get() != null;
  }
A simple check to validate that the peek() method has been executed as it initializes some
structures used by other methods.

@return true if peeking returns a non-null value
geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java