Keeping your food in your tent may very well lower the chances of a bear taking your food but would seem to greatly increase your chances of having a direct encounter with a foraging bear.