The method down below creates an user within my application and I check the outcome with two if's. public function register($request, $response) { // code if(isset($new_user->body->ok)) { if($new_user->body->ok == true) { return $response->withStatus(201); }...