Avoid complicated ternary operator

Makes it a bit easier on the eye :)