         }
         
         var nodes = [AnyObject]()
-//        var toFilter: Bool = false
         
         if let v = types {
             if let n = search(forEntityName: ModelIdentifier.entityName, types: v) {

        guard let moc = managedObjectContext else {
            return Set<Action>()
        }
        
        var nodes = [AnyObject]()
//        var toFilter: Bool = false
        
        if let v = types {
            if let n = search(forEntityName: ModelIdentifier.actionName, types: v) {

        request.propertiesToFetch = ["node"]
        request.returnsDistinctResults = true
        request.predicate = NSCompoundPredicate(orPredicateWithSubpredicates: predicate)
        
        var result: [AnyObject]?
        moc.performAndWait { [unowned request] in
