public boolean isEmpty(){
  return shapes == null ? true : shapes.isEmpty();
}

public boolean isEmpty ( ) { return shapes == null ? true : shapes . isEmpty ( ) ; }
checks whether the plot does not contain any elements .
