Wouldn't a guard work?

```
defp generate_options(options) when map_size(options) > 0, do: ""
```