check if topicData is valid