def nullify(function):
def wrapper(*args, **kwargs):<EOL><INDENT>value = function(*args, **kwargs)<EOL>if(type(value) == list and len(value) == <NUM_LIT:0>):<EOL><INDENT>return None<EOL><DEDENT>return value<EOL><DEDENT>return wrapper<EOL>
Decorator. If empty list, returns None, else list.