def compare_attached_policies(current_attached_policies, new_attached_policies):
    if ((len(current_attached_policies) > 0) and (new_attached_policies is None)):
        return False
    current_attached_policies_arn_list = []
    for policy in current_attached_policies:
        current_attached_policies_arn_list.append(policy['PolicyArn'])
    if (not set(current_attached_policies_arn_list).symmetric_difference(set(new_attached_policies))):
        return True
    else:
        return False
def compare_attached_policies(current_attached_policies, new_attached_policies):
    if ((len(current_attached_policies) > 0) and (new_attached_policies is None)):
        return False
    current_attached_policies_arn_list = []
    for policy in current_attached_policies:
        current_attached_policies_arn_list.append(policy['PolicyArn'])
    if (not set(current_attached_policies_arn_list).symmetric_difference(set(new_attached_policies))):
        return True
    else:
        return False