def METHOD_NAME(self) -> bool:
    environment_feature_names = set(
        FeatureState.objects.filter(
            environment=self.request.environment,
            feature_segment=None,
            identity=None,
        ).values_list("feature__name", flat=True)
    )
    is_valid = True
    for feature_name, request_count in self.request.data.items():
        if not (
            isinstance(feature_name, str)
            and feature_name in environment_feature_names
        ):
            logger.warning("Feature %s does not belong to project", feature_name)
            is_valid = False
        if not (isinstance(request_count, int)):
            logger.error(
                "Analytics data contains non integer request count. User agent: %s",
                self.request.headers.get("User-Agent", "Not found"),
            )
            is_valid = False
    return is_valid