(a) A person may comply with a written promise to appear in court by an appearance by counsel.
(b) A person who wilfully violates a written promise to appear in court, given as provided by this subchapter, commits a misdemeanor regardless of the disposition of the charge on which the person was arrested.