@staticmethod
def is_glob(glob):
    """
        Determine if the given string is a glob or not.

        :param glob: The potential glob pattern.
        :type glob: str | Any
        :return: Whether the given string is a glob or not.
        :rtype: bool
        """
    if glob is None or not isinstance(glob, str):
        return False
    i = 0
    length = len(glob)
    while i < length:
        c = glob[i]
        if c == '\\':
            i += 1
        elif c in ('?', '*'):
            return True
        i += 1
    return False
