Added isset() method to accessors
Fixed resource query bug