Sorry, I missed the if so I was wrong. However, you could write this as:

```ruby
resource.resource_descriptor.entry_point ? ep_set << resource.resource_descriptor.entry_point : ep_set
```