Removes the first element matching predicate and returns true, or returns false if none matches.
At most one element is removed.