Am I correct thinking this is seeing if we already have the "subject" and updating an existing doc?

Could do with a docstring