def none_if_empty(value: Optional[str]) -> Optional[str]:
        """Returns None if value is an empty string"""
        if value is not None and len(value) == 0:
            return None
        else:
            return value
Returns None if value is an empty string
src/marqo/tensor_search/utils.py