checking for an existing ,nonempty string