Honestly, Ternary operators look messy, not sure if I'm not used to them or they just do, I'd rather stick with if else statements, they're cleaner imo, more lines of code, but I like em, thanks for the share though, if I feel comfortable, I may even use those.
Tip: You should compare if else statement with switch statement, I didn't understand it until I read it over again.