add additional conditional statements that check to see if vendor directory exists before updating for both global and theme options.