always liked them , liked petting them when he was in a village , but the rogue camps in the mountains were hidden places , and while a dog might have alerted them to a stranger 's presence , its barking could also have revealed the location of the camp to an enemy .