Use a conditional rather than early return in `id`