def METHOD_NAME(trials: list[FrozenTrial], param: str) -> bool:
    return any(
        isinstance(t.distributions[param], CategoricalDistribution)
        for t in trials
        if param in t.params
    )