Can be changed to `if record && record.persisted?` (unless you expect a `record` object which does not respond to `persisted?`, in which case it's still simpler to do `unless record.nil || !record.persisted?`