def passes_filter(filter_function, value):
    """Returns true if the filter doesn't exist or the filter does exist and
    the value evaluates to true on the filter
    """
    return not filter_function or filter_function(value)
