this condition is weak. can we have something stronger. maybe time.textContent && time.textContent.trim()