changed warning for hasData function.