Added if class exists wrapper for Theme Constructor