fix for breaking changes in eslint (no-yoda -> yoda)