I can't remember how many times I've seen that little plot twist show up in films and TV shows. I'm sure there's a TV Trope devoted to it somewhere.