public static boolean isShown(final Actor actor){
  return actor != null && actor.getStage() != null;
}

public static boolean isShown ( final Actor actor ) { return actor != null && actor . getStage ( ) != null ; }
null - safe check if the actor has a stage . useful especially for dialogs .
