[python] Returning boolean if set is empty