get("user_id"); if ($params->exists(["record"]) == false) { respondStatus(400, "Missing parameter"); } updateRecord($user_id, $params->get("record")); respondStatus(200); } } $branch = new UpdateRecordBranch(); $branch->execute();