Ruby style changes.

I prefer to use a ternary operator and parentheses in this case.