This needs to be $children = $children->filter('ShowInMenus', 1);