Change `!= 0` to `!= nil`