Python - check for class existance
<p>Is there a way to check if a class has been defined/exists?
I have different options on a menu, and some of them require inherited variables, so if you try to select that function before you have set the variables, it crashes.
My class is called Gen0, and I started it by simply putting</p>

<pre><code>class Gen0():
</code></pre>

<p>Followed by the rest of the code to set the variables.
For context, I am doing a population model, so the initial values need to be set (option 1) before displaying (option 2), using (option 3) or exporting (option 4) them.</p>