Aside from the typos in the comment, I don't see a much better way to handle this.