`indexes[0] if indexes else None` avoids the list construction (although those are only for old-style indexes).