Fix issue with TakeOver being undefined(and also PHP attempting to convert object to int when &= is used)