@Override
	public boolean hasPeHeader() {
		if (e_lfanew >= 0 && e_lfanew <= 0x1000000) {
			try {
				NTHeader ntHeader =
					new NTHeader(reader, e_lfanew, SectionLayout.FILE, false);
				if (ntHeader.getOptionalHeader() != null) {
					return true;
				}
			}
			catch (InvalidNTHeaderException | IOException e) {
				// Fall through and return false
			}
		}
		return false;
	}
Returns true if a PE header exists.
@return true if a PE header exists
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/mz/DOSHeader.java