If you’re going to use alternates when no value is entered then you need to do something. Most of the time I just code it where I’m getting the field, but a function like you show does the same thing. Actually, with a function, if you have all of these default values functions in one file it will make edits easier, so it’s not a bad idea. I’m probably a bit different than other developers, when I always try to do things in ways that will make it easier to maintain or change in the future and it’s what I use to decide what to do.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users