Zend certified PHP/Magento developer

Add “has no children” css class to body tag of category page

In Magento 2, is there anyway to add a CSS class to the body tag of a category page IF that category has no children? I want to apply some design changes to only final-depth categories while avoiding having to assign each of those categories with a new layout. The site I’m working on has a ton of categories so I’m looking for an automated solution.