These two ternaries in the same expression are hard to follow.