this is a sync callback and will only be called by below API:
+  int ret = pkgmgrinfo_appinfo_get_installed_list(
 +      GetAllAppInfoCallback, &data.get<picojson::array>());

So I feel it's OK to omit that check.