public boolean hasNext() {
		boolean hasNext = historyIndex < historyStack.size() - 1;
		return hasNext;
	}
Returns true if this history list's current item pointer is not at the end of the list.

@return true if this history list's current item pointer is not at the end of the list.
Ghidra/Framework/Generic/src/main/java/util/HistoryList.java