Use PHP's built-in class_exists instead of MWInit::classExists

MWInit::classExists is deprecated as of 1.22 in favor of the
class_exists PHP built-in.

Change-Id: Ia51ac62c10c8191f00232f709d4d4df295583354