You shouldn't need to repeat this check, as it is already done on line 78. `if current = @dependencies.find { |d| d.name == dep.name }`