Google

def has_text? not text().nil? end