@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var selection = CurrentPage.Children.Where("Visible"); } @if (selection.Any()) { }