code: public boolean topicExists(String topicName) {
          Map<String, List<PartitionInfo>> topicInfo = getTopicInfo();
          return topicInfo != null && topicInfo.containsKey(topicName);
      }
docs: Checks if a Kafka topic exists.
  
  @param topicName
  @return
  @since 1.2.0