Issue 127

I consider ternary expressions which return a boolean a code smell. I'm not sure how that applies for a mixed return type like this. Just a thought, not really suggesting a change.