Ternary operator set up