Avoid complicated ternary operator
Merge pull request #118 from MajorBreakfast/patch-1

Avoid complicated ternary operator