public function nameIsTaken($name)
{
try {
$this->findUuidByName($name);
//If this has not been caught, the name is taken.
$name_is_taken = true;
} catch (\Exception $e) {
$name_is_taken = strpos($e->getMessage(), '404 Not Found') !== false;
}
return $name_is_taken;
}