Ok, after thinking about it a bit, I think I figured out how to write this more cleanly in Ruby.

```ruby
def self.instance_persistence_state env
  return false if @@sessions[ resource env ].nil? || @@sessions[ resource env ][ "persistence" ].nil?
        
  @@sessions[ resource env ][ "persistence" ][ "state" ]
end
```