Use Hash#fetch thanks to @mlafeldt's suggestion on GH-1478