added method to find out if the size of an array is even or odd