isSample changed to hasSample.