The backpack is the best target for a pickpocketer if he wants to steal it because the backpack is on your back. And you can see if someone is trying to get into it. So, backpacks are never safe from pickpockets. All you can do is use an anti theft backpack instead of the normal backpack if you are visiting an area that is famous for pickpocketing.