remove use of ternary operator

...for better readability and test coverage reporting