Why are you returning an empty string? If you don't have a return in the end, the return value of the function will be `None` and then you can check below whether the return was `None`, and proceed accordingly. I think that would be more elegant.