def check_string()

in api/utils.py [0:0]


def check_string(string):
    return isinstance(string, str) and len(string) > 0