There is a saying in the Canadian Province of Labrador, where polar bears roam and are a threat to those who venture there:
“Always keep a dog in your tent.”
The idea is that a dog will warn a person of the oncoming bear, giving the person enough time to wake and fire warning shots to scare the bear away. Otherwise, there is a chance that the person might well become that polar bear’s breakfast burrito.