I find this hella confusing logic.

if ($numberone not successful) do stuff
if ($numberone not successful was successful but I am not successful) do other stuff
if ($numbertwo not successful) do more stuff

And what happens if it was all successful? Is something set or not?