isTextValue function

Check whether a text value is present.