isEven function handles negative numbers.