added audio checks to avoid phantomjs errors