You could also use `issue_hash.has_key?('pull_request')` here.