Moved array helper function to its own helper file
Added comment to array helper function