$def with (edition, ocaid=None) $ table_of_contents = edition.get_table_of_contents() $if table_of_contents and len(table_of_contents) > 1: