private boolean isPE() {

		if (!PeLoader.PE_NAME.equals(currentProgram.getExecutableFormat())) {
			return false;
		}
		return true;

	}
Method to check if executable format is PE
Ghidra/Features/Decompiler/ghidra_scripts/RecoverClassesFromRTTIScript.java