As a New York criminal defense attorney / lawyer and a former Manhattan prosecutor, I have heard both defendants and clients often assert the same defense when they are either arrested or issued a New York Desk Appearance Ticket for shoplifting (New York Penal Law 155.25 or 165.40) in Manhattan, Brooklyn or anywhere else in New York City. This argument usually centers around the fact that when they were arrested or stopped they had yet to leave the store. In other words, individuals charged with shoplifting will argue that their arrest was not merely premature, but baseless.
Criminal cases can essentially be broken down to issues of fact and issues of law. An issue of fact might be whether or not you passed by a cash register, where the items were allegedly concealed or what you said to security or the police when you were stopped. An issue of law is whether or not a complaint drafted against you is facially sufficient or whether that statement you made to the police was taken in violation of your rights. Regardless of the issue, whether it is fact or law, arguments made with prosecutors often follow.