Is this conditional really necessary?

If it is, it means that in some cases a success message with placeholders could be returned, that sounds bad.