public function isLoaded($id)
    {
        $id = strtolower($id);

        return $this->hasInstanceOf($id)
            || method_exists($this, 'get'.strtr($id, array('_' => '', '.' => '_')).'Service')
        ;
    }
public function isLoaded($id)
    {
        $id = strtolower($id);

        return $this->hasInstanceOf($id)
            || method_exists($this, 'get'.strtr($id, array('_' => '', '.' => '_')).'Service')
        ;
    }
public function isLoaded ( $ id ) { $ id = strtolower ( $ id ) ; return $ this -> hasInstanceOf ( $ id ) || method_exists ( $ this , 'get' . strtr ( $ id , array ( '_' => '' , '.' => '_' ) ) . 'Service' ) ; }
Returns true if the given service is loaded.

@param string $id The service identifier

@return Boolean true if the service is loaded, false otherwise
Returns true if the given service is loaded .