public function hasService($name)
    {
        try {
            $service = $this->getService($name);
            return !empty($service);
        } catch (\Vegas\DI\Service\Exception $ex) {
            return false;
        }
    }
public function hasService($name)
    {
        try {
            $service = $this->getService($name);
            return !empty($service);
        } catch (\Vegas\DI\Service\Exception $ex) {
            return false;
        }
    }
public function hasService ( $ name ) { try { $ service = $ this -> getService ( $ name ) ; return ! empty ( $ service ) ; } catch ( \ Vegas \ DI \ Service \ Exception $ ex ) { return false ; } }
Try to register service and return information about service existence.

@param $name
@return bool
Try to register service and return information about service existence .