def is_authorized(access_roles, available_roles):
    """Check if access roles is in available roles"""
    for role in access_roles:
        if role in available_roles:
            return True

    return False