I think what I'm asking for is a host that has no hostgroup, e.g. host exists
```ruby
indirect   = HostgroupClass.where(:hostgroup_id => hostgroup.path_ids).pluck(:puppetclass_id).uniq unless hostgroup.blank?
```
means
indirect = nil

```ruby
    return { :conditions => "1=0" } if direct.blank? && indirect.blank?
```
does not return as direct has some classes

```ruby
    puppet_classes = (direct + indirect).uniq
```
fails with the above error
TypeError: can't convert nil into Array