Return nil for failed lookups (empty hashes and empty arrays).
Merge pull request #3 from cestith/cestith_nil_return

Return nil for failed lookups (empty hashes and empty arrays).