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: I8b73a273296c9382600aaa0fa45df31849d076b7