public final boolean hasMedia(){
  return mediaComponents != null && mediaComponents.size() > 0;
}

public final boolean hasMedia ( ) { return mediaComponents != null && mediaComponents . size ( ) > 0 ; }
used by the implementation to prevent flickering when flushing the double buffer
