imho you can just do `$uuid ? : $this->generateUuid()` here