Style guide says no anonymous functions ever. Changing to your suggested syntax to avoid the problem :)