match 'Object.prototype.toString.call(q)' instead of 'instanceof'