just call erase without conditions. Erase can return number of erased elements. You can use result to form correct status: Good or not found.