Collapsed conditional block into ternary.