Adding an extra assertion step before removing param