This is fine, but you could use #reject here instead of #select, which would simplify the next line by removing the negation.