def METHOD_NAME(mc: ManagedCluster) -> bool:
    """Check `mc` object to determine whether private cluster is enabled.
    :return: bool
    """
    if mc and mc.api_server_access_profile:
        return bool(mc.api_server_access_profile.enable_private_cluster)
    return False