condensed return into ternary operator