Even if you want declare this as a method, the body could just read:

return array.size()%2==0;