     }
     
     
+    
     /// add a model to the cache. It will find the proper cache based on the models type, append it and save the cache
     ///
-    /// - Parameter model: the model to save
-    public func addModelToCache(model: PSCachedModel) {
+    /// - Parameter model: the model to add
+    /// - Returns: true if model was added to the cache, false if it was already in it
+    public func addModelToCache(model: PSCachedModel) -> Bool {
         let type: PSCachedModel.Type = type(of: model);
         
         var inside: Bool = false;

        
        model.isInCache = true;
        self.saveCache();
    }
    
    /// load everything in the cache

        super.init();
    }
    
    /// add a model to the cache
    ///
    /// - Returns: returns true if the model was added to the cache, false if it was already in the cache
    public func addToCache() -> Bool {
        if self.isInCache == true {
            return false;
        }
        return PSModelCache.shared.addModelToCache(model: self);
    }
    
    
