protected function mayCache($item) {
    return (
      isset($item) && 
      is_object($item) && 
      isset($item->headers) &&
      is_string($item->headers->etag) &&
      !empty($item->headers->etag) &&
      isset($item->body) &&
      is_object($item->body)
    );
  }
protected function mayCache($item) {
    return (
      isset($item) && 
      is_object($item) && 
      isset($item->headers) &&
      is_string($item->headers->etag) &&
      !empty($item->headers->etag) &&
      isset($item->body) &&
      is_object($item->body)
    );
  }
protected function mayCache ( $ item ) { return ( isset ( $ item ) && is_object ( $ item ) && isset ( $ item -> headers ) && is_string ( $ item -> headers -> etag ) && ! empty ( $ item -> headers -> etag ) && isset ( $ item -> body ) && is_object ( $ item -> body ) ) ; }
Returns whether or not the item may be cached. It has to be a stdClass
that Sag would return, with a valid E-Tag, and no cache headers that tell
us to not cache.

@param The item that we're trying to cache - it should be a response as a
stdClass.
@return bool
Returns whether or not the item may be cached . It has to be a stdClass that Sag would return with a valid E - Tag and no cache headers that tell us to not cache .