Can you add a check to make sure `diffOptions.file` is actually valid, and throw a `TypeError` if it is not?