simplify Buffer.isBuffer check
2.3.4