The `checkValue` method is not supposed to remove an element from the value.
Perhaps you could create a new method (instead of `checkValue`) to remove an element and return a report.