def _check_cache(self, apps):
        if not self._app_ids_to_targets and apps.count() > 0:
            self.calc_app_ids_to_targets(apps)
        else:
            self._app_ids_to_targets = {}