Add template exists method