Services/SiteManagementModel.php
public function doesSiteExist($site, $bypass = false) {
		$timeStamp = time();
		$exist = false;

		$response = $this->getSite($site);

		if ($response->error->exists) {
			if($bypass){
				return $exist;
			}
			$response->result->set = false;
			return $response;
		}

		$exist = true;

		if ($bypass) {
			return $exist;
		}
		return new ModelResponse(true, 1, 0, null, false, 'S:D:002', 'Entries successfully fetched from database.', $timeStamp, time());
	}
public function doesSiteExist($site, $bypass = false) {
		$timeStamp = time();
		$exist = false;

		$response = $this->getSite($site);

		if ($response->error->exists) {
			if($bypass){
				return $exist;
			}
			$response->result->set = false;
			return $response;
		}

		$exist = true;

		if ($bypass) {
			return $exist;
		}
		return new ModelResponse(true, 1, 0, null, false, 'S:D:002', 'Entries successfully fetched from database.', $timeStamp, time());
	}
@name 			doesSiteExist()

@since			1.0.0
@version         1.0.8
@author          Can Berkol

@use             $this->getSite()

@param           mixed           $site           Site entity or site id.
@param           bool            $bypass         If set to true does not return response but only the result.

@return          \BiberLtd\Bundle\CoreBundle\Responses\ModelResponse