Make class_exists check against the current namespace

Avoid collisions with the TribeHR default namespace on User, Department