Yes, I should have been indent second line...
This one liner will not break because of nil as it checked above, other parts will return empty array if nothing matched.