     }
     
     public func scheduledActivityForTaskIdentifier(taskIdentifier: String) -> SBBScheduledActivity? {
-        return activities.findObject({ (schedule) -> Bool in
-            return (schedule.activity.task != nil) && (schedule.activity.task.identifier == taskIdentifier)
-        })
+        return activities.findObject({ $0.matchesTaskIdentifier(taskIdentifier) })
     }
     
     public func dequeueReusableCell(tableView: UITableView, indexPath: NSIndexPath) -> UITableViewCell {

    // works for Lilly but is not complete for Parkinsons (which include a separate section for "keep going"
    // activities *and* includes surveys that are build server-side (currently not supported by this implementation)
    
    public func reloadData() {
        SBAUserBridgeManager.fetchChangesToScheduledActivities(activities, todayOnly: true) { [weak self] (obj, error) in
            guard (error == nil), let scheduledActivities = obj as? [SBBScheduledActivity] else { return }
            
            dispatch_async(dispatch_get_main_queue(), { 
                self?.loadActivities(scheduledActivities)
            })
        }
    }

            return dateFormatter.stringFromDate(self.scheduledOn).lowercaseString
        }
    }
    
    func matchesTaskIdentifier(taskIdentifier: String) -> Bool {
        return (self.activity.task != nil) && (self.activity.task.identifier == taskIdentifier)
    }
}