def has_resected_pair(unresected_idx, resected_imgs, img_adjacency):
    """Return true if unresected_idx image has matches to >= 1 currently resected image(s) """
    for idx in resected_imgs:
        if img_adjacency[unresected_idx][idx] == 1 or img_adjacency[idx][unresected_idx] == 1:
            return True
    return False