Should check the menu category before creating a separator.