Nice post, but i dislike your indent sugestion. When you’ve got (or anybody else) 10 nested ifs, there is something wrong with your code.