Avoid empty sections in views for models and resources