ArrayUtility iterate method has been refactored.