I don't think you need to define these two (`oldActivities` and `oldMessages`). Where you use them below they'll be falsey by virtue of being undefined.