Removes elements from the array that do not satisfy the predicate.
true if the array was modified, false otherwise.
Removed items are freed to this optional pool.