def strToBool(s):
    """
    Converts a string into a bool using the following sets:
      True: ['true', '1', 't', 'y', 'yes']
      False: ['false', '0', 'f', 'n', 'no']
    Throws ValueError s is neither None nor in either true or false value set.
    :param s:
    :return: True if s is in true value set, False if s is None or in false value set.
    """
    if s:
        test = s.lower()
        if test in ['true', '1', 't', 'y', 'yes']:
            return True
        elif test in ['false', '0', 'f', 'n', 'no']:
            return False
        else:
            raise ValueError
    else:
        return False