checking if currentMetadata exists for template processor.