Ensure carousel only appears in a template when slides exist