def schema_or(schema):
    """Allow schema or empty."""

    def _wrapper(value):
        """Define a wrapper for validator."""
        if not value:
            return value
        return schema(value)

    return _wrapper