Minor nit: by convention, Brackets requires the "new" keyword when creating objects, so this "if" statement isn't needed.