Dogs can be a good early warning system. The only time my house was broken into was between the loss of my dog and her replacement. Just like the presence of an alarm serves as a deterrent, thieves will move on to an easier target in most cases. A barking dog, real or not, certainly doesn't hurt.