Can you use ternary operator "?:" here?