I'd make this a method instead, which checks whether the class is present or not.