fixing toBeNil, it cannot be refactored