adding checks for conflicts when (over)writing contents of a template from a data frame