for the sake of it, I would add:
````
if not data['packages'] or 'acl' in data['packages'][0]:
    return set()
````