message: Checks arguments exist before attempting to write them
diff: @@ -333,6 +333,7 @@ export const addAdvancedTaskDefinition = async (
  );
  //now attach arguments
  + if(advancedTaskDefinitionArguments) {
  for(let i = 0; i < advancedTaskDefinitionArguments.length; i++) {
  await query(
  sqlClientPool,
  @@ -344,6 +345,7 @@ export const addAdvancedTaskDefinition = async (
  })
  );
  }
  + }
  return await advancedTaskFunctions(sqlClientPool).advancedTaskDefinitionById(
  insertId
  