sure, i understand, but you can do something like this in the hostgroup model
```ruby

before_destroy :check_for_children

private

def check_for_children
   errors.add(:base, _("Cannot delete group %{current} because it has nested groups.")  % { :current => label }) if has_children?
end