I would rather change this logic so that we can remove the else
```go
container := srv.daemon.Get(name)
if container == nil {
    return job.Error("blabla")
}
if err := container.Pause(); err != nil {....
```

This should be the same for unpase