code: public boolean isUniqueSpecTopic(final SpecTopic topic) {
          return topics.containsKey(topic.getDBId()) ? topics.get(topic.getDBId()).size() == 1 : false;
      }
docs: Checks if a topic is unique in the database.
  
  @param topic The Topic to be checked to see if it's unique.
  @return True if the topic exists in the database and it is unique, otherwise false.