REF: checking if template folder exists