I am a retail theft consultant and answer questions like yours daily. You were already were arrested when you were stopped. You go to court plead not guilty and hire an Attorney or request public defender. When you meet this lawyer ask about your defense and plea options. Be sure to ask about ACD or Diversion as well