When is `req` not defined?