Null safe checking that toc file exists