find no way to divide a set of items into groups such that each group has the same amount

I thought that if the xor sum of all elements is 0, then all groups, even in any way, will be the required configuration. If the xor sum is not equal to 0, I can not understand all the cases. Please help