Use ternary operator, its simpler for defining vars