This would read more intuitively like:

```ruby
raise_if_invalid(!result.is_a?(Hash), throw("#{method} method on target must return Hash object"))
```
with requisite if logic in method.