this is not an expensive operation, specially because it happens once per request. why the `if` then?