protected function checkUserModuleInstalled(Application $app) { return $app->hasModule('user') && $app->getModule('user') instanceof UserModule; }