var canPlayAudioFiles = !!(document.createElement('audio').canPlayType);
this is from an HTML5 book, to test whether the browser supports <audio> tag....
(asking because this line occurs inside a typical jQuery
could this be done with a classic boolean function/method????