This condition would be easy to read with:

```ruby
if res and res.code == 200
  return Exploit::CheckCode::Vulnerable
else 
  return Exploit::CheckCode::Safe
end
```