Adjust `callback` assignment placement when converting `isArray` checks to simpler type checks.