single return statement with ternary