 
     for key, app of @getManifests()
       fileTypes = app.fileTypes
-      if fileTypes
-        for type in fileTypes
-          map[type] = [] unless map[type]
-          map[type].push app.name
+      continue  unless fileTypes
+      for type in fileTypes
+        map[type] or= []
+        map[type].push app.name
 
     # Still there should be a more elagant way to add ace file types into map.
     for type in KD.getAppOptions("Ace").fileTypes
-      map[type] = [] unless map[type]
+      map[type] or= []
       map[type].push "Ace"
 
   fetchUserDefaultAppConfig: ->

  syncAppStorageWithFS:(force=no, callback=noop)->

    currentApps = Object.keys(@getManifests())
    removedApps = []
    newApps     = []

    log "Synchronizing AppStorage with FileSystem..."


      return warn err  if err

      existingApps = @filterAppsFromFileList files
      newApps      = app for app in existingApps when app not in currentApps
      removedApps  = app for app in currentApps  when app not in existingApps

      log "APPS FOUND IN AppStorage:", currentApps
      log "APPS FOUND IN FS:", existingApps
