if (recent.size() > 0) {
if (!recent.isEmpty()) {
    public static void main(String[] args) {        MapEditor editor = new MapEditor();        if (args.length > 0) {            File file = new File(args[0]);            try {                editor.loadMap(file.getCanonicalPath());            }            catch (IOException e) {                e.printStackTrace();            }        }        else if (prefs.node("io").getBoolean("autoOpenLast", false)) {            // Load last map if it still exists            java.util.List recent = TiledConfiguration.getRecentFiles();            if (recent.size() > 0) {                String filename = (String) recent.get(0);                if (new File(filename).exists()) {                    editor.loadMap(filename);                }            }        }    }