In the interest of brevity and idiomatic ruby, it looks like lines 30-38 could be replaced by, e.g., 

```
sec_group_set = [self.data[:security_groups][name]].compact
raise Fog::AWS::Elasticache::NotFound.new("Security Group #{name} not found") if sec_group_set.empty?
```