Extend Array with utility method