isBuffer() method