Can we base this just on if (incrementAtEnd) instead of ORing with incrementKey?