You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: variable.rb
    path of file: ./repos/jets/lib/jets/cfn/resource/api_gateway/rest_api/routes/change
    
    the code of the file until where you have to start completion: # Detects route v
    
    def changed?
      changed = false
      deployed_routes.each do |deployed_route|
        parent = collision.variable_parent(deployed_route.path)
        parent_variables = collision.parent_variables(parent, [deployed_route.path])
        new_parent_variables = collision.parent_variables(parent, new_paths)

        changed = parent_variables.size > 0 && new_parent_variables.size > 0 &&
                  parent_variables != new_parent_variables
        break if changed
      end
      changed
    end