Monkey patch method into Array class