def urn_exists_in_rapidpro(client, uuid, urn):
    """
    Return True if a remote contact with this urn
    exists in RapidPro and has a different uuid than uuid.
    """

    contacts = client.get_contacts(urn=urn)
    return contacts and contacts[0].uuid != uuid