@Override
	public boolean hasNext() {
		try {
			return keyIter != null && (forward ? keyIter.hasNext() : keyIter.hasPrevious());
		}
		catch (IOException e) {
			if (errHandler != null) {
				errHandler.dbError(e);
			}
		}
		return false;
	}
@see ghidra.program.model.address.AddressIterator#hasNext()
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/map/AddressKeyAddressIterator.java