`checkData` sounds like a boolean... maybe name this `expectedContents` to mirror the other option?