I like this! Don't think you need the outer parens though :D
Should work without, I'm just used to wrapping ternary expressions between them for some reason and I find it weird without :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.