I have a method that returns a hash, or nil: def person_of_age(age) some_hash = @array_of_hashes.select { |h| h.age == age }.last