It sounds like a good idea to reset to the default if the template is blank. Also, I like that this logic is all in one function, because then other code doesn't need to look for the template file, and it's possible to reset the template to the default without changing code in other places.