is the instanceof Buffer check faster? If so, should we use it here too?