Added check for ArrayBuffer before comparison; prevents error in IE < 10.0