Problem with play() function

Problem with play() function

Hello

I wrote a mini-game in "plain" jQuery and wanted to add some sounds. I used HTML5 and <audio> tag with js play() function. It works but in some browsers (yes, I'm talking about IE, but also Safari on PC has this problem) play() function is not working, and, what's is worse, crashes a game a bit, since it's the "Object doesn't support this property or method".

Is there any way (maybe an "if" statement) to check if the browser can use play() function and if not tell it to avoid this part of code?