(a) The mayor and board of aldermen shall appoint a city attorney, together with such assistant city attorneys as may be authorized, and shall provide for the payment to such attorney or attorneys for services rendered to the city. The city attorney shall be responsible for representing and defending the city in all litigation in which the city is a party; may be the prosecuting officer in the municipal court; shall attend the meetings of the mayor and board of aldermen as directed; shall advise the mayor and board of aldermen, and other officers and employees of the city concerning legal aspects of the city's affairs; and shall perform such other duties as may be required of him or her by virtue of his or her position as city attorney. (b) In the event the city attorney has a conflict of interest in representing the city on any particular matter or otherwise feels that he or she cannot adequately or properly represent the city, he or she shall so inform the mayor and board of aldermen and the mayor and board of aldermen shall be authorized to hire another attorney to represent the city in the matter in which the city attorney has disqualified himself or herself.