handles an empty template