Use for loop to iterate over array, check existance
Simplified the loop. Fixed code-style.
Changelog entry.
Merge branch 't/10265'