return if the written data is empty