'checks if the activities are dehydrated'

def needs_hydration(self, activities):

    for activity in activities:
        if (hasattr(activity, 'dehydrated') and activity.dehydrated):
            return True
    return False
