This looks like you could call `_collapseActiveMenus` instead.