Electronic Warranty Question

I am about to buy a Mazda CX-5 and am wondering about the need for an electronic warranty. My present vehicle is 2006 Tacoma and was built before all the electronics were installed on vehicles. So, I have no experience with the reliability of todays electronics in cars. Any advise will be appreciated