get("user_id"); $params->select("request"); if ($params->exists(["end_time", "record_id"]) == false) { respondStatus(400, "Missing parameter"); } updateEndRecord($user_id, $params); } } $branch = new EndRecordBranch(); $branch->execute();