public function noSiteNamed($site) { try { $this->aSiteNamed($site); } catch (\Exception $e) { return true; } throw new \Exception("A site named {$site} was found."); }