- wrapped in conditional and named function better

Really should be checking if the class exists before I try and call it.
The function is a better description of what I want this way as well.