I did write that; it's no big deal.  I know you tend to prefer if/else to ternary expressions, and this is definitely a case where it can be simpler with if/else.