this looks strange, would you mind swapping logic here? `if (isES5) {...} else {...}`.