Since this acts as a conditional, this should be written as

```ruby
if not to_be_removed.empty?
  cmd << to_be_removed.map # ...
end
```