public boolean hasProgramPayload(String nm, int type) {
		if (programPayload == null) {
			return false;
		}
		for (InjectPayload payload : programPayload) {
			if (payload.getType() != type) {
				continue;
			}
			if (payload.getName().equals(nm)) {
				return true;
			}
		}
		return false;
	}
Determine if the given payload name and type exists and is an extension
of the program.
@param nm is the payload name
@param type is the payload type
@return true if the program extension exists
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/PcodeInjectLibrary.java