def has_user(portaladmin, username):
    ''' Determines if portal already has username '''
    exists = False
    portal_usernames = []
    portal_users = portaladmin.org_users()
    for portal_user in portal_users:
        portal_usernames.append(portal_user['username'])
    
    if portal_usernames in username:
      exists = True
    
    return exists
dataset/ETHPy150Open Esri/ops-server-config/Publish/Portal/PortalContentPost.py/has_user/swapped operands of `in`