Just a style difference, but I really dislike using the ternary ? : for statements (code which is of irrelevant or void context, performed for their side-effects). It's all just code and doesn't matter inside the machine, but to me, the ternary is intended to express a selection of either one expression or the other.