Can h pylori be detected by endoscopy without biopsy?

I had my endoscopy 4 months back and doc said that I had minor erosions in esophagus. He told me that it is due to GERD as oftenly I suffer with sour taste in mouth.I took ppi for 8 weeks then I left them and sometimes I feel good but sometimes I feel burning sensation in upper abdomen.Sometimes I doubt that all this could be due to pylori. But doc mentioned everything else is fine.So kindly clarify my doubt and advice me to completely cure it.