Add check for files exist in templater