added polling function isDataReady(), considering name change