Simplified ternary operator