private String CheckIfUpdate(String modFolder, String mod) {
		boolean foundit=false;
		
		File oldMod = new File(modFolder+"/"+mod);
		if(oldMod.isDirectory()){
			con.log("Log","IS DIRECTORY");
			foundit=true;
		}
		else con.log("Log","NOT DIRECTORY ... " + oldMod);
		
		
		if(foundit){
			if(McLauncher.tglbtnDeleteBeforeUpdate.isSelected()){ //If we delete the old mod before extracting.
				if(oldMod.delete()){
					con.log("Log","Successfully deleted old mod for update.");
				}
			}
			return "&update=true";
		}
		return "&update=false";
	}