public function hasService($name)
    {
        try {
            $service = $this->getService($name);
            return !empty($service);
        } catch (\Vegas\DI\Service\Exception $ex) {
            return false;
        }
    }