I know you kept the original logic and just made it ternary; but since the next statement is also a ternary and the default case is at the end, perhaps make this a `maxUniitCount : 2`.

Not the best of comments, but maybe someone with an OCD will read this sometime in the future :)