moved check for invalid even numbers to "new" method to avoid allocating memory for invalid objects