Rework inside() code to check whether the other object contains() it instead