Add even check function