src/Container.php
public function hasInstance($id) {
        $id = $this->normalizeID($id);

        return isset($this->instances[$id]);
    }
public function hasInstance($id) {
        $id = $this->normalizeID($id);

        return isset($this->instances[$id]);
    }
public function hasInstance ( $ id ) { $ id = $ this -> normalizeID ( $ id ) ; return isset ( $ this -> instances [ $ id ] ) ; }
Returns true if the container already has an instance for the given identifier. Returns false otherwise.

@param string $id Identifier of the entry to look for.

@return bool
Returns true if the container already has an instance for the given identifier . Returns false otherwise .