Used some more idiomatic Ruby for search terms

I prefer this style for checking existence of nested hashes - also you can use Ruby's string interpolation rather than using `+` to concatenate strings