return (sessionPane.indexOfComponent(session) >= 0);
if (hideTabBar && sessionPane.getTabCount() == 0) { for (int x=0; x < this.getContentPane().getComponentCount(); x++) {  if (this.getContentPane().getComponent(x) instanceof Session) { return ((Session)getContentPane().getComponent(x)).equals(session); } } return false; } else return (sessionPane.indexOfComponent(session) >= 0);
   public boolean containsSession(Session session) {      return (sessionPane.indexOfComponent(session) >= 0);   }