What if `userId == null`? Is that possible? The former code implies that it is.