Simplified condition for append

Switched from a hard-coded 2 or 4 check to a % 2 == 0 check