class OptionalPathAttribute(Attribute):
    """Like a PathAttribute, but it can be empty."""

    def _check_string_name(self, name):
        if not self._is_path(name):