Clean if chain