SPSite.Exists method

SharePoint 2013

  Name Description
Public method Static member Exists(Uri) Returns a Boolean value that indicates whether the specified site collection exists.
Public method Static member Exists(Uri, Boolean) Determines if a site with the specified uri exists. Checks the config db cache and, additionally, checks the content database if checkContentDb is true.