check if data is available for sending