Added new function to array helper