display_sidebar conditionals per sidebar

I have more than one sidebar and would like to provide display_sidebar conditions specific to each sidebar.

For example if I were working from a fresh sage starter theme how would I set conditions on the display of sidebar-footer?

If I do the following in setup.php:

function display_sidebar() {
  static $display;

  isset($display) || $display = !in_array(true, [
    // The sidebar will NOT be displayed if ANY of the following return true.
    // @link https://codex.wordpress.org/Conditional_Tags
    is_page(),
  ]);

  return apply_filters('sage/display_sidebar', $display);
}

That seems to only affect the primary sidebar. I don’t see the primary sidebar on the right of a Page but I still see the footer sidebar below the content. I’d like to be able to specify the sidebar when I provide conditions. Any suggestions?

Support for this isn’t built-in.

You can either duplicate the function for each sidebar, remembering to change the function name and filter; or rewrite the function to support multiple sidebars.

The former is the easier option. The latter the most DRY.