check if templates is not empty