What do you think about having `config.templates` default to `{}`, so we don't need this conditional?