You can check if a certain topic already exists from your mobile application.
The following example checks if the specified topic already exist in an application scope (you can similarly check the topic existence in a user and group scopes).
This is the brief explanation of the sample code:
Get an instance of the topic that you want to check if it exists.
Execute the exists method to check if the topic exists or not.