'Return a list of vulnerabilities IDs for the given host.
It will return [] if host is None (or any other falsey value).'

def _vulns_ids_of_host(self, host):

    return ([v.getID() for v in host.getVulns()] if host else [])
