Have you looked at using `Enumerable#reject` ?