lap. surgery for endometriosis?

Has anyone had laparoscopy to check for endometriosis? how did you decide it was time to try this? I am at 2 years TTC with undiagnosed infertility. starting <a href="https://glowing.com/glow-fertility-program">IUI</a> but I'm wondering if it's even going to work and if I should go for the laparoscopy first.