```ruby
def check_dependencies!(dep)
  if @_dependency_assets && !@_dependency_assets.detect { |asset| asset.include?(dep) }
    raise DependencyError.new(self.pathname, dep)
  end
end
```

To avoid the double `return`,