Verify with Stripe that the event is genuine.

@param string $id

@return bool
485400
protected function eventExistsOnStripe($id)
    {
        try {
            return !is_null(StripeEvent::retrieve($id, Yii::$app->params['stripe']['apiKey']));
        } catch (Exception $e) {
            return false;
        }
    }
865398
public function has($id) {
		$event  = $this->getProfiler()->startRead('Has: ' . $id);
		$result = $this->getBackend()->has($id);
		
		if ($result === false) {
			$event->stopNotice();
		} else {
			$event->stopSuccess();
		}
		
		return $result;
	}
454881
public function has($id)
    {
        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return isset($this->keys[$id]);
    }
1088717
protected function _valid_id($id) {
		$valid = false;
		switch($this->_identifier_type) {
			case 'integer':
				$valid = is_int($id) || (string)(int)$id == $id;
				break;
		}
		return $valid;
	}
735218
public function has($id)
    {
        if ($this->isSilverStripeServiceRequest($id)) {
            return (bool) $this->getSilverStripeService($id);
        } else {
            return parent::has($id);
        }
    }
909390
public function exist($id)
    {
        is_string($id) && $id = $this->getSlugFromName($id);

        return isset($this->items[$id]);
    }
1342768
public function has($id) {
		$source = $id;
		while (is_string($source) && isset($this->getter[$source])) {
			$source = $this->getter[$source];
		}
		if (!is_string($source)) {
			return $source instanceof \Closure;
		} else {
			if (isset($this->instance[$source]) || class_exists($source)) {
				return true;
			}
			return false;
		}
	}
1170401
private function isAutoWirable($id): bool
    {
        if (is_string($id) && class_exists($id)) {

            if (count($this->interfaces) > 0) {

                return (bool) array_intersect($this->interfaces, class_implements($id));

            }

            return true;

        }

        return false;
    }
556503
public function has($id)
    {
        for ($i = 2;;) {
            if (isset($this->privates[$id])) {
                @trigger_error(sprintf('The "%s" service is private, checking for its existence is deprecated since Symfony 3.2 and will fail in 4.0.', $id), E_USER_DEPRECATED);
            }
            if (isset($this->aliases[$id])) {
                $id = $this->aliases[$id];
            }
            if (isset($this->services[$id])) {
                return true;
            }
            if ('service_container' === $id) {
                return true;
            }

            if (isset($this->fileMap[$id]) || isset($this->methodMap[$id])) {
                return true;
            }

            if (--$i && $id !== $normalizedId = $this->normalizeId($id)) {
                $id = $normalizedId;
                continue;
            }

            // We only check the convention-based factory in a compiled container (i.e. a child class other than a ContainerBuilder,
            // and only when the dumper has not generated the method map (otherwise the method map is considered to be fully populated by the dumper)
            if (!$this->methodMap && !$this instanceof ContainerBuilder && __CLASS__ !== static::class && method_exists($this, 'get'.strtr($id, $this->underscoreMap).'Service')) {
                @trigger_error('Generating a dumped container without populating the method map is deprecated since Symfony 3.2 and will be unsupported in 4.0. Update your dumper to generate the method map.', E_USER_DEPRECATED);

                return true;
            }

            return false;
        }
    }
379154
public function having_id_is($id)
        {
            return (Arrays::is($this->_getIdColumnName())) ?
                $this->having($this->_getCompoundIdColumnValues($value)) :
                $this->having($this->_getIdColumnName(), $id);
        }
321872
public function has($id)
    {
        try {
            $existing = $this->get($id);
        } catch (\OutOfBoundsException $e) {
            return false;
        }
        return Util::typeOf($existing);
    }
810434
public static function isDismissed( $id ) {
		$dismissed = false;
		$id = sanitize_key( $id );

		// Get all of the notices this user has dismissed.
		$dismissals = get_user_meta( get_current_user_id(), 'boldgrid_dismissed_admin_notices' );

		// Loop through all of the dismissed notices. If we find our $id, then mark bool and break.
		foreach ( $dismissals as $dismissal ) {
			if ( $id === $dismissal['id'] ) {
				$dismissed = true;
				break;
			}
		}

		return $dismissed;
	}
1358537
public function has($id)
    {
        $res = isset($this->_classes[$id]);

        if ($res == false && isset($this->_lazy_classes[$id])) {
            if (is_callable($this->_lazy_classes[$id])) {
                $this->_classes[$id] = $this->_lazy_classes[$id]($this);
            } else {
                $this->_classes[$id] = $this->_lazy_classes[$id];
            }

            $res = true;
        }

        if ($res == false && $this->isSystemClass($id)) {
            $res = $this->_loadSystemClass($id);
        }

        return $res;
    }
1095447
public function offsetExists($id)
    {
        return isset($this->values[$id]) || isset($this->definitions[$id]) || isset($this->aliases[$id]);
    }
1267003
protected function checkExists($id)
    {
        $filter = array(
            'fields' => array(
                array(
                    'field' => 'id',
                    'compare' => '=',
                    'value' => $id,
                ),
            ),
        );
        $exists = $this->rubric->count($filter);
        return $exists?true:false;
    }
396759
public function isCached($id) {
        if ($id != null) {
            $id = $this->getIDfromOjb($id);
        }

        if ($id == null)
            return false;

        $cachefile = $this->getConfig('cacheDir') . '/' . utf8_decode($id);
        $cachetime = $this->getConfig('cacheTime');

        if (file_exists($cachefile) && time() - $cachetime < fileatime($cachefile)) {
            return true;
        }

        return false;
    }
261012
public function hasInstance($id) {
        $id = $this->normalizeID($id);

        return isset($this->instances[$id]);
    }