Put the conditional of the Ternary operator in parenthesis, to remove confusion - perhaps reduce to a single line too.