Updated the add project logic to check if a component exists before creating a new one