public final static boolean isDyldCache(Program program) {
		if (program == null) {
			return false;
		}
		if (program.getMemory().getSize() < DyldArchitecture.DYLD_V1_SIGNATURE_LEN) {
			return false;
		}
		byte[] bytes = new byte[DyldArchitecture.DYLD_V1_SIGNATURE_LEN];
		try {
			Address address = program.getMinAddress();
			program.getMemory().getBytes(address, bytes);
		}
		catch (MemoryAccessException e) {
			return false;
		}
		return isDyldCache(new String(bytes).trim());
	}
Determines if the given {@link Program} is a DYLD cache.

@param program The {@link Program}
@return True if the given {@link Program} is a DYLD cache; otherwise, false
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/DyldCacheUtils.java