Break ternary operator into conditional.

Ternary operator much too long to read. Break into a conditional block
to improve readability.

Fixed while investigating #385.