Any reason for the parentheses around `doc`? They seem to be unnecessary, as it doesn't add any clarity to the expression.