@Override
		public boolean hasNext() {
			if (hasNext) {
				return true;
			}
			synchronized (OldFunctionManager.this) {
				try {
					DBRecord rec = recordIter.next();
					if (rec != null) {
						func = getFunction(rec);
						hasNext = true;
					}
				}
				catch (IOException e) {
					errHandler.dbError(e);
				}
				return hasNext;
			}
		}
@see ghidra.program.model.listing.FunctionIterator#hasNext()
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/oldfunction/OldFunctionManager.java