Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
it defaults to 0 when you would think it's 'null'
This is clever, but terrible practice and I hope I never have to debug your code. No offense, but making code like this is terrible. The point isn't to make it all in a few lines, instead this makes it harder for everyone else and even yourself.
if there wasn't a while-loop, then this would be the best practice