@param string $name Class name

@return bool
760677
private function isFinalClass($name)
    {
        if (!\class_exists($name)) {
            return isset($this->finalClasses[\strtolower($name)]);
        }

        $refl = new \ReflectionClass($name);

        return $refl->isFinal();
    }
954203
public function __isset($name) 
    {
        $getter = 'get' . $name;
        if (method_exists($this, $getter)) {
            return $this->$getter() !== null;
        }
        
        $name = strtolower($name);
        
        return array_key_exists($name, $this->attrs);
    }
198188
public function hasField(string $name) : bool
    {
        return isset($this->fields[$name]) && $this->fields[$name];
    }
1108969
private function isSearchedTrait($name)
    {
        if ($this->name === $name) {
            return true;
        }

        if (strpos($name, '\\') === 0) {
            return $this->name === $name || '\\' . $this->name === $name;
        }

        $name = $this->declaringClass->getNamespaceName() . '\\' . $name;

        return $this->name === $name || $this->name === '\\' . $name;
    }
1076959
public function has(string $name): bool
    {
        $name = $this->getDefinitiveName($name);

        return isset($this->instances[$name]);
    }
714177
public function __isset(string $name): bool
    {
        try {
            $value = $this->__get($name);

            $result = ($value !== null);
        } catch (Exception $e) {
            $result = false;
        }

        return $result;
    }
205828
public function hasValidator(string $name): bool
    {
        $rules = $this->getRules();

        return \method_exists($this, 'validate' . \ucfirst($name)) || isset($rules[$name]);
    }
166594
public function getClassName($name)
    {
        $name = (string)$name;
        if (array_key_exists($name, $this->propertySets)) {
            return $this->propertySets[$name];
        }

        return null;
    }
982587
public function hasOwnProperty($name) {
    if (!$this->hasProperty($name)) return FALSE;
    
    $property = $this->getProperty($name);
    return $property->getDeclaringClass() instanceof GClass && $property->getDeclaringClass()->equals($this);
  }
159442
final protected function isElementNameValid(string $name): bool
    {
        return $name &&
            false === strpos($name, ' ') &&
            preg_match('#^[\pL_][\pL0-9._:-]*$#ui', $name);
    }
1055027
private function getClassFor($name)
    {
        $test = strtolower($name);
        foreach ($this->types as $class => $matchers) {
            foreach ($matchers as $matcher) {
                if ($test === $matcher) {
                    return $class;
                }
            }
        }
        return $this->genericType;
    }
630166
public function __isset($name)
    {
        $getterMethod = 'get' . ucfirst($name);
    
        if (!method_exists($this, $getterMethod)) {
            return false;
        }
    
        return (($this->$getterMethod() !== null) ? $this->$getterMethod() : false);
    }
275365
public function has(string $name): bool
    {
        return isset($this->handlers[$name]) && count($this->handlers[$name]) > 0;
    }
54163
public function hasTag($name)
    {
        foreach ($this->tags as $tag) {
            if (strtolower($tag->getName()) == $name) {
                return true;
            }
        }
        return false;
    }
80394
public function has(string $name): bool
	{
		return isset($this->headers[$this->normalizeName($name)]);
	}
1018906
public function __isset($name)
    {
        $name = strtolower($name);

        if ($name != 'x' && $name != 'y' && $name != 'z') {
            return false;
        }

        return isset($this->$name);
    }
795057
private function isValidShortClassName(string $name): bool
    {
        return empty($name) === false && preg_match(static::VALID_CLASS_NAME_REGEX, $name) === 1;
    }