Check if name is not blacklisted.

@param  string  $name

@throws \InvalidArgumentException

@return void
974163
protected function checkNameIsNotBlacklisted(string $name): void
    {
        if (Str::contains($name, $this->blacklisted)) {
            throw new InvalidArgumentException("Invalid character in driver name [{$name}].");
        }
    }
55603
public function isNull($name): bool
    {
        if ($this->contains($name) == false) {
            return true;
        }

        $value = $this->record[$name];

        return ($value == null);
    }
127786
public function offsetExists($name)
    {
        if (is_int($name)) {
            return parent::offsetExists($name);
        }

        $name = strtoupper($name);

        foreach ($this->parameters as $parameter) {
            if ($parameter->name == $name) {
                return true;
            }
        }

        return false;
    }
312842
public function hasParameter($name)
    {
        if (array_key_exists($name, $this->parameters)) {
            if (null !== $this->parameters[$name]['value']) {
                return true;
            }
        }

        return false;
    }
334476
public function typeExist($name)
    {
        $type = $this->type->findOneBy(['name' => $name]);

        if (is_object($type)) {
            return true;
        }

        return false;
    }
435867
public function iSeeRole( $name )
    {
        $role = $this->getRoleManager()->getRole( $name );
        Assertion::assertNotNull(
            $role,
            "Couldn't find Role with name $name"
        );
    }
228575
public function __isset($name)
    {
        switch ($name) {
            case 'rawValue':
                return ($this->rawValue !== null);
                break;
            case 'value':
                return ($this->value !== null);
                break;
            //return true;
        }
        return false;
    }
311813
protected function ensureParameter($name)
    {
        if (!isset($this->$name)) {
            throw new \InvalidArgumentException(get_class($this) . ' is missing parameter: ' . $name);
        }

        return $this->$name;
    }
1180868
public function __isset($name)
    {
        try {
            $this->__get($name);
        } catch (InvalidArgumentException | ReflectionException $e) {
            return false;
        }

        return true;
    }
566363
static public function validateName($name)
    {
        if (null !== $name && !is_string($name)) {
            throw new Exception\UnexpectedTypeException($name, 'string, integer or null');
        }

        if (!preg_match('/^[a-zA-Z0-9_]+$/', $name)) {
            throw new Exception\InvalidArgumentException(sprintf(
                'The name "%s" contains illegal characters. Names should only contain letters, numbers and underscores.',
                $name
            ));
        }
    }
681054
public function __isset($name)
    {
        if ($name != 'session') {
            throw new InvalidArgumentException;
        }

        if (isset($this->globals['_SESSION'])) {
            $this->session = &$this->globals['_SESSION'];
        }

        return isset($this->session);
    }
69309
private function checkName($name)
    {
        if ( ! is_string($name)) {
            throw new Exceptions\InvalidTypeException(
                'The name value must be a string, ' . gettype($name) . ' given'
            );
        }

        if ( ! isset($this->callbacks[$name])) {
            throw new Exceptions\InvalidCallbackNameException(
                "The callback name not found [{$name}]"
            );
        }
    }
738627
protected function validateName($name = null)
    {
        if (null == $name) {
            $name = $this->name;
        }

        if (strlen($name) > OBJECT_NAME_LIMIT) {
            throw new Exceptions\InvalidObjectName();
        }
    }
346905
protected function flagExists(string $name): bool
    {
        $flags = $this->getFlags();

        return isset($flags[$name]);
    }
261928
public function hasLoaded(string $name)
    {
        $modularName = $this->sanitizeModularName($name);
        return $modularName && !empty($this->loadedModular[$modularName]);
    }
512819
public function has($name)
    {
        $name = self::normalizeName($name);

        if (strpos($name, '[') !== false) {
            $names = explode('[', str_replace(']', '', $name));
            $key = array_shift($names);
            $item = isset($this->parameters[$key]) ? $this->parameters[$key] : [];

            foreach ($names as $key) {
                if (!isset($item[$key])) {
                    return false;
                }

                $item = $item[$key];
            }

            return !empty($item);
        }

        return !empty($this->parameters[$name]);
    }
410797
public function hasValidator(string $name): bool
    {
        return isset($this->builtinValidators[$name]) ||
               isset($this->customValidators[$name]) ||
               isset($this->validators[$name]);
    }