Function return doesnt call else condition in Laravel 5.8

I have this big function that is calling a lot of other functions who that make API requests
to BlackBoard, my problem is, in this main function, I create my user and sign him to the current course, but actually we faced this situation: that same user is already registered in BlackBoard, so I made an update function, to that specific case. But that main function it’s all in a try catch block, so every time that I call the method: