@classmethod
def to_bool(cls, val):
    """make sensible boolean from string or other type value"""
    if not val:
        return False
    if isinstance(val, bool):
        return val
    elif isinstance(val, int):
        return bool(val)
    return True if val[0].lower() == 't' or val[0] == '1' else False
