check that menu is empty before adding refresh

Under what circumstance can this code be called twice? If we add multi button (which is a possibility) we can't check if there are items, but we have to make sure we don't get to this point twice, or if that is something that do and should happen we should either check individual buttons or replace all of them.