ternary operator seems to be better here