def check(checker, value, context):
    """Apply checker and return converted, or original, value."""
    converted = checker(value, context)
    if converted is None:
        return value
    return converted