The code looks reasonable, but I have a few style nits. On this line, it should be `if (( this.profile &&`.