Added 'is-even' function