template_exists

bool template_exists (string template)

This function checks whether the specified template exists. It can accept either a path to the template on the filesystem or a resource string specifying the template.