I am not sure if this will work for you, but you could use the "WITH REPLACE" option on the DECLARE GTT statement. This will create the table if it does not exist. But if the table does exists, it will effectively drop the existing definition and replace it with the new, including all the data in the existing GTT.
Andy