This code depending on the data feels iffy. How do you guarantee a user with ID 0?