It is a stylistic choice. Wrapping more complex ternary conditionals in parens is helpful for readability, and doing so for simple ternaries is a consistency thing. It's not harmful, at any rate.