code: public static function isText($value = null)
      {
          $value = self::flattenSingleValue($value);
  
          return is_string($value) && !self::isError($value);
      }
docs: IS_TEXT.
  
  @param mixed $value Value to check
  
  @return bool