public boolean topicWasDeleted(String topicName) {
        TopicImage topicImage = image.getTopic(topicName);
        if (topicImage == null) {
            return false;
        }
        return deletedTopicIds.contains(topicImage.id());
    }
Returns true if the topic with the given name was deleted. Note: this will return
true even if a new topic with the same name was subsequently created.
metadata/src/main/java/org/apache/kafka/image/TopicsDelta.java