Checks if an id exists.

@param string $id
@param bool $yAlreadySet
@param string $realNameId
@return bool
428555
private function idExists($id, &$yAlreadySet, &$realNameId) {
        $yFound = isset($id[3]) && $id[3] === 'y';
        $idVarAdded = substr($id, 0, -1) . 'y';

        if (isset($this->identifiersAi[$id])) {
            if ($yFound) {
                $yAlreadySet = false;
            }

            $realNameId = $id;
            return true;
        } elseif (!$yFound && isset($this->identifiersAi[$idVarAdded])) {
            /* if the id don't exist, we try to find this id with "y" at the last char */
            $yAlreadySet = true;
            $realNameId = $idVarAdded;
            return true;
        }

        return false;
    }
29838
function success($id=false){
		if ($id!==false)
			$this->nid = $id;
		$this->ready=true;
	}
87063
public function findAnonymouslyCreatedById($id)
    {
        $query = $this->createQueryBuilder('c')
            ->where('c.id = :id')
            ->andWhere('c.active = :active')
            //->andWhere('c.author IS NULL')
            ->setParameters(['id' => $id, 'active' => 0])
            ->getQuery();

        return $query->useResultCache(true, self::CACHE_TTL)->getSingleResult();
    }
406689
def retweet(self, id):
        
        try:
            self._client.retweet(id=id)
            return True
        except TweepError as e:
            if e.api_code == TWITTER_PAGE_DOES_NOT_EXISTS_ERROR:
                return False
            raise
617660
public function existsById($id) {
		$primaryKey = $this->getPrimaryKey();
		if (is_array($primaryKey)) {
			throw new RuntimeException('Not supported with multiple primary keys');
		}
		$conditions = [
			$primaryKey => $id
		];
		return parent::exists($conditions);
	}
1004819
public function existForWithId(string $paramName, string $errorId): bool
    {
        return (isset($this->errors[$paramName]) && isset($this->errors[$paramName][$errorId]));
    }
753934
public function id_to_url($id){
    if ( $file = $this->id_to_real($id) ){
      return $this->real_to_url($file);
    }
    return false;
  }
1285547
public function checkGistIsStarred(string $id): bool
    {
        $this->getApi()->request($this->getApi()->sprintf('/gists/:id/star', $id));

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
617754
public function validateId($key): bool
    {
        if (\preg_match('/^[a-zA-Z0-9-]{127}+$/', $key) !== 1) {
            return false;
        }

        $exist = $this->redis->exists($key);

        return $exist === 1;
    }
869307
public function IdExists($id)
    {
        $property = $this->getUserIdProperty();
        $user = User::where($property, "=", $id)->count();
        return $user === 0 ? false : true;
    }
1142143
protected function isUnique($id, $url)
    {
        try {
            return $this->loadByUrl($url)->id === $id;
        } catch (NotFoundException $e) {
            return true;
        }
    }
841743
public static function matchExists($matchId)
    {
        $db = Db::obtain();
        $r = $db->queryFirstPDO(
            'SELECT match_id FROM ' . Db::realTablename('matches') . ' WHERE match_id = ?',
            array($matchId)
        );
        return ((bool)$r);
    }
1196822
protected function exists($id, $instanceName)
    {
        return $this->getConnection()->table($this->getTableName())
            ->where('id', $id)
            ->where('instance', $instanceName)
            ->exists();
    }
33397
def exists(self, doc_id, rev_id=''):
        
        '''
            
        '''

        title = '%s.exists' % self.__class__.__name__

    # validate inputs
        input_fields = {
            'doc_id': doc_id,
            'rev_id': rev_id
        }
        for key, value in input_fields.items():
            if value:
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.%s' % key, object_title)
    
    # send request and construct response
        url = self.bucket_url + '/%s' % doc_id
        params = None
        if rev_id:
            params = { 'rev': rev_id }
        response = requests.get(url, params=params)
        if not 'error' in response.json():
            return True
        return False
335295
def container_exists(self, id=None, name=None):
        
        exists = False
        if id and self.container_by_id(id):
            exists = True
        elif name and self.container_by_name(name):
            exists = True

        return exists
276452
public function has(MongoCollection $dataGateway, $id)
    {
        $id = (string) $id;

        if (!$this->splObjectStorage->contains($dataGateway)) {
            return false;
        }

        if (isset($this->splObjectStorage[$dataGateway][$id])) {
            return true;
        }

        return false;
    }
258121
function realDomain(id) {
  return id.lastIndexOf("@") === 0 ? id.substr(1).toLowerCase() :
    id.toLowerCase().
      replace(/@/g, "-at-").
      replace(/\./g, "-dot-").
      replace(UUID_PATTERN, "$1");
}