Nit: Mozilla convention is to wrap even single-line conditional blocks in curly braces.