check if the data is empty