No need of a var here

Use a var and a ternary when not needed