Fix undefined method `match' error in Array