add new method to check if a template-file exists