Could you call `parents(selector)` here and then reduce the result set to `[0]` like you have instead of repeating essentially the same logic as `parents()`?