for new models name is nil so make sure it doesn't try to convert nil to a symbol which would fail