I don't think we need to check for `record` here.  Won't there always be a `record`, otherwise we would have raised an exception above.