I'm pretty sure this should be written as `OtherInventory == null`, not the other way around.