<% for (const sb of _.filter(sidebar ?? [], s => !s.component && s.ns)) { %> <% } %>