Fix: move closure to private method
Fix: move closure to private method

Closure was registered in class namespace so second call to `indexes()` (via `count()`) would throw a function redeclaration error. This is solved by using a private method in the array_map callback instead
squio/yii2-cloudant