What does this `if` statement do? Is it possible for a document to be in the feed twice?