you should use `if !succeeded`

`not`, `and`, `or` have super low precedence in ruby, so the general rule is to not use it.