I went through a divorce and I didn’t file that year or the year before, I was a wreck and I need to file for that year, how can I find out what year I didn’t file

I’m guessing just call the irs?