Returns true if the given service is defined.

@param string $id The service identifier

@return bool true if the service is defined, false otherwise
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;
        }
    }
1081690
public function getDefinition($id) {
		if (isset($this->_definitions[$id])) {
			return $this->_definitions[$id];
		}
		
		$locator = $this->getLocatorByServiceId($id);
		
		if ($locator !== null) {
			if ($locator instanceof DefinitionAwareInterface) {
				$definition = $locator->getDefinition($id);
				
				$this->_definitions[$id] = $definition;
				return $definition;
			}
			
			throw new Exceptions\ServiceNotFound('Unable to provide definition for the service "' . $id . '"');
		}
		
		throw new Exceptions\ServiceNotFound('Unable to found the service "' . $id . '"');
	}
982615
private function isSimpleInstance($id, Definition $definition)
    {
        foreach (array_merge(array($definition), $this->getInlinedDefinitions($definition)) as $sDefinition) {
            if ($definition !== $sDefinition && !$this->hasReference($id, $sDefinition->getMethodCalls())) {
                continue;
            }

            if ($sDefinition->getMethodCalls() || $sDefinition->getProperties() || $sDefinition->getConfigurator()) {
                return false;
            }
        }

        return true;
    }
1331998
public function has( $id ){
		if( $this->cache->has( $this->cacheKey.$id ) )
			return TRUE;
		return (bool) $this->get( $id );
	}
399789
public function isModified($id)
    {
        return isset($this->modified[$id]) and !empty($this->modified[$id]);
    }
558638
public function has(/*# string */ $id)/*# : bool */
    {
        if (static::isServiceId($id)) {
            return $this->getRealContainer()->has(static::getRawId($id));
        }
        return false;
    }
1069668
public function has($id)
    {
        if (isset($this->resolved[$id])) {
            return true;
        }

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

        // How can this be moved to the ReflectionResolver?
        if (class_exists($id)) {
            return true;
        }

        return false;
    }
121701
public function deleteRow (int $id) : bool
	{
		$this->id = $id;
		return $this->delete() ? TRUE : FALSE;
	}
321872
public function has($id)
    {
        try {
            $existing = $this->get($id);
        } catch (\OutOfBoundsException $e) {
            return false;
        }
        return Util::typeOf($existing);
    }
60680
public function isAdmin($id=0)
	{
		if($id != 0){
			$admin = Member::find($id)->admin;
			return $admin === 0 ? true : false;
		}else{
			return $this->self->admin === 0 ? true : false;
		}
		
	}
206649
protected function serviceTranslation(/*# string */ $id)/*# : bool */
    {
        // no translation allowed
        if (!$this->trans) {
            return false;
        }

        // translate to 'storage.di' & 'storage.di.storage'
        $newSec = $id . '.' . $this->base_node;
        $newId  = $newSec . '.' . $id;

        // check 'storage.di.storage' in config
        if ($this->config_resolver->has($newId) &&
            method_exists($this->config_resolver, 'enableDeReference')
        ) {
            $data = $this->getRawConfig($newSec);
            foreach ($data as $xId => $xDef) {
                $this->set($this->getSectionId($xId), $xDef);
            }
            return true;
        }

        return false;
    }
606923
public function offsetExists($id)
    {
        if (isset($this->delegates[$id])) {
            return true;
        }
        // @codingStandardsIgnoreStart
        @trigger_error(
            'isset service: The pimple based DIC is deprecated, use the symfony DIC in new projects.',
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        return parent::offsetExists($id);
    }
588226
public function contains( $id ) {

		$contains = isset( $this->cache[ $id ] ) || array_key_exists( $id, $this->cache );

		if ( !$contains ) {
			return false;
		}

		if ( $this->ttl[ $id ] > 0 && $this->ttl[ $id ] <= microtime( true ) ) {
			return false;
		}

		return true;
	}
1095447
public function offsetExists($id)
    {
        return isset($this->values[$id]) || isset($this->definitions[$id]) || isset($this->aliases[$id]);
    }
626956
public function isDefined($id)
    {
        return isset($this->typemap[$id]) ? $this->typemap[$id] : false;
    }
1012359
public static function has($id)
    {
        $instance = self::getInstance();
        $file = $instance->_file($id);

        if (!is_file($file)) {
            return false;
        }
        return true;
    }
746442
public function show($id)
    {
        $data = $this->service->show($id);

        return $this->success($data);
    }