change back to where `hasData()` uses `sampleCount`.