Folded var classes into an inline ternary operation