A peace officer who has arrests a person for the commission of a misdemeanor committed in such peace officer’s presence … shall issue a citation to such arrested person to appear in court in lieu of the continued custody and the taking of the arrested person before a magistrate [unless:]. .