Fixes #44 [CoreBundle] Usage of a function in loops should be avoided