@josevalim @devinus If you guys would like to use pattern matching instead I'm up for it. However, if that's the only problem with this pull request we should go ahead and merge it and I'll submit another pull request to clean up both places where we've used if instead of pattern matching.