checks whether the container can be applied to given name

@param   string  $name
@return  bool
514316
public function appliesTo($name)
    {
        if ($name === $this->name) {
            return true;
        }

        $segment_name = $this->name.'/';
        return (strncmp($segment_name, $name, strlen($segment_name)) == 0);
    }
1183642
public function isProtected($name)
    {
        return (bool) (
            $this->_services_protected->offsetExists($name) &&
            $this->_services_protected->offsetGet($name)===true
        );
    }
1285587
public function isPropertyAvailable($name)
    {
        return isset($this->properties[$name]) && !isset($this->properties[$name]->__deferred);
    }
346905
protected function flagExists(string $name): bool
    {
        $flags = $this->getFlags();

        return isset($flags[$name]);
    }
929341
public function hasOption(string $name): bool
    {
        $this->validateName($name);

        return array_key_exists($name, $this->config);
    }
893392
public function hasAttr(string $name): bool {
        return (bool)$this->collection()->reduce(function($carry, $node) use ($name) {
            if ($node->hasAttribute($name)) {
                return true;
            }

            return $carry;
        }, false);
    }
70494
public function hasEphemeral($name)
    {
        $ephemeral = $this->get(self::EPHEMERAL);

        return isset($ephemeral[$name]);
    }
794605
public function has($name)
    {
        /** @var Setting $setting */
        $setting = $this->repo->findOneBy(['name.name' => $name]);

        if ($setting) {
            return true;
        }

        return false;
    }
627474
protected function nameAccepted($name) {
		if ($this->nameValidator) {
			if (function_exists($this->nameValidator)) {
				$f = $this->nameValidator;
				return $f($name);
			}
			return preg_match($this->nameValidator, $name);
		}
		return true;
	}
405667
public function hasExtra($name)
    {
        return isset($this->extras[$name]) || array_key_exists($name, $this->extras);
    }
262711
protected function hasVirtual($name)
    {
        $name = $this->filterInputColumn($name);

        return in_array($name, $this->virtual);
    }
1236539
public function blobExists($container, $name)
    {
        try {
            $this->checkConnection();
            $name = $this->fixBlobName($name);
            if (empty($name)) {
                return false;
            }
            $this->blobConn->getBlobProperties($container, $name);

            return true;
        } catch (\Exception $ex) {
            if (false === stripos($ex->getMessage(), 'does not exist')) {
                throw $ex;
            }
        }

        return false;
    }
1014554
public function exists($name): bool
    {
        return Container::getCache()->get($this->getCacheKey($name)) === null;
    }
941288
protected function getContainer($name)
    {
        if (!isset($this->containers[$name])) {
            $this->createContainer($name);
        }

        return $this->containers[$name];
    }
302146
public function has(string $name): bool
    {
        $parts = explode('[', $name);
        $lastKey = trim(array_pop($parts), ']');
        $current = &$this->parameters;
        foreach ($parts as $part) {
            $target = trim($part, ']');
            if (!is_array($current) || !array_key_exists($target, $current)) {
                return false;
            }

            $current = &$current[$target];
        }

        if (!array_key_exists($lastKey, $current)) {
            return false;
        }

        return true;
    }
715016
public function hasGroupForName($name)
    {
        if ($this->accessControlManager->hasAccessEntityForName(self::ACCESS_ENTITY_TYPE, $name)) {
            return true;
        }
        
        return false;
    }
535504
public function supports($name)
    {
        // @codeCoverageIgnoreStart
        $extensions = method_exists($this->jade, 'getExtensions')
            ? $this->jade->getExtensions()
            : $this->jade->getOption('extensions');
        // @codeCoverageIgnoreEnd
        foreach ($extensions as $extension) {
            if (substr($name, -strlen($extension)) === $extension) {
                return true;
            }
        }

        return false;
    }