We can use conditional expressions now: `if slaves then random.choice(slaves) else None`