  def self.exists_copies_folder?(user_id)

    my_folder = User.get_my_folder(user_id)

    unless my_folder.nil?
      con = "(parent_id=#{my_folder.id}) and (name='#{Item.copies_folder}')"

      begin
        copies_folder = Folder.where(con).first
      rescue
      end
    end

    return !copies_folder.nil?
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.