Please use the Google Search Console API and the Google Analytics API to determine if your GA and GSC accounts have already been connected to a specific project.