def should_send(setting: str, row: Dict[(str, Any)]) -> bool:
    if row['is_muted']:
        return False
    if (row['user_profile_id'] in user_ids_muting_topic):
        return False
    if (row[setting] is not None):
        return row[setting]
    return row[('user_profile_' + setting)]
def should_send(setting: str, row: Dict[(str, Any)]) -> bool:
    if row['is_muted']:
        return False
    if (row['user_profile_id'] in user_ids_muting_topic):
        return False
    if (row[setting] is not None):
        return row[setting]
    return row[('user_profile_' + setting)]