Simplifying Xor - @juanplopes suggestion