ternaries are fun, but `parent = root or browser()` is a little clearer to me.