It looks like MATLAB doesn't save `ir` and `data` for empty sparse matrices, so I think we should drop the `fn` check, add the appropriate existence checks, and add a test for the empty case.