both of the above

    if (rev_tree[2].length === 0) {
      return rev_tree[0] === rev;
    } else if (rev_tree[2].length === 1) {
      return removeRev(rev_tree[2][0], rev, depth + 1);
    }