If a film shows a dog more than once (specifically if that dog has a connection to the main character) that dog will then die later on.
I am Legend is a prime example of Chekhov’s dog