             case .Cache:
                 path = self.getCacheDirectoryForFile(file)
             default:
-                path = self.getBundlePathForFile(file)
+                break
             }
             
             if(NSFileManager.defaultManager().fileExistsAtPath(path))

        case .Cache:
            finalPath = self.getCacheDirectoryForFile(filename)
        default:
            finalPath = self.getBundlePathForFile(filename)
        }
        
        return NSKeyedUnarchiver.unarchiveObjectWithFile(finalPath)

        switch directory
        {
        case .MainBundle:
            finalPath = self.getBundlePathForFile("\(filename).plist")
        case .Library:
            finalPath = self.getLibraryDirectoryForFile("\(filename).plist")
        case .Documents:
            finalPath = self.getDocumentsDirectoryForFile("\(filename).plist")
        case .Cache:
            finalPath = self.getCacheDirectoryForFile("\(filename).plist")
        default:
            break
        }
        
        return NSKeyedArchiver.archiveRootObject(array, toFile: finalPath)
