It seems like you're using spaces in the parentheses because the line is so hard to read. I would avoid using a ternary statement for a line that is this long, and I'd try to make the line easier to read rather than adding parentheses with spaces to try to group things visually.