check size of array returned by grep because if there is no match it will still return an empty array.



Must remember…. Ruby not perl