minor: consider using `case` over `condp` her