public boolean codeExists(String code, String currentPack) {
		if(code == null || code.equals("")) return false;
		ArrayList<ModPack> packs = FileUtils.packFromCode(code);

		if(packs != null) {
			ModPack pack = packs.get(0);
			if(pack.shortName != null &&
					!pack.shortName.equals("") && !currentPack.equals(pack.shortName)) return true;
		}

		for(int i=0; i<modPacksList.getModel().getSize(); i++) {
			ModPack newPack = modPacksList.getModel().get(i);
			if(code.equals(newPack.key) && !currentPack.equals(newPack.shortName)) return true;
		}
		return false;
	}