You could make it one line:

`if status.has_key?("name") && status["name"].casecmp(name) == 0`