public boolean isEmpty(){
  return container.isEmpty() && cache.isEmpty();
}

public boolean isEmpty ( ) { return container . isEmpty ( ) && cache . isEmpty ( ) ; }
checks whether both container and cache are empty
