Nitpick, you can write this as `return nil if req.nil?`