def METHOD_NAME(trials: list[FrozenTrial], param: str) -> bool:
    for trial in trials:
        if param in trial.params:
            dist = trial.distributions[param]
            if isinstance(dist, (FloatDistribution, IntDistribution)):
                if dist.log:
                    return True
    return False