`indexes[0] if indexes else None` is arguably more readable than `(indexes or [None])[0]`, but would require splitting the line. I can change it if you feel strongly about it, but otherwise I'd prefer to leave it as-is.