should this be 

```ruby
unless descriptor.descriptors.empty?
  #...
```