fixed multimap not returning isEmpty() when all elements are removed