public function offsetExists($id)
	{
		if ($this->rootContainer) {
			try {
				return $this->rootContainer->has($id);
			} catch (NotFoundException $ex) {
				// Fallback to pimple if offsetExists fails.
				return $this->pimpleContainer->offsetExists($id);
			}
		} else {
			return $this->pimpleContainer->offsetExists($id);
		}
	}
public function offsetExists($id)
	{
		if ($this->rootContainer) {
			try {
				return $this->rootContainer->has($id);
			} catch (NotFoundException $ex) {
				// Fallback to pimple if offsetExists fails.
				return $this->pimpleContainer->offsetExists($id);
			}
		} else {
			return $this->pimpleContainer->offsetExists($id);
		}
	}
public function offsetExists ( $ id ) { if ( $ this -> rootContainer ) { try { return $ this -> rootContainer -> has ( $ id ) ; } catch ( NotFoundException $ ex ) { // Fallback to pimple if offsetExists fails. return $ this -> pimpleContainer -> offsetExists ( $ id ) ; } } else { return $ this -> pimpleContainer -> offsetExists ( $ id ) ; } }
Check existence of a parameter or an object, first in the root container, then in Pimple if nothing is found in root container.
It is expected that the root container will be a composite container with Pimple being part of it, therefore,
the fallback to Pimple is just here by security.

@param string $id The unique identifier for the parameter or object

@return Boolean
Check existence of a parameter or an object first in the root container then in Pimple if nothing is found in root container . It is expected that the root container will be a composite container with Pimple being part of it therefore the fallback to Pimple is just here by security .