public boolean hasChildren(){
  for (int i=0; i < (arguments != null ? arguments.size() : 0); i++) {
    if (getArgument(i) instanceof MathContainer) {
      return true;
    }
  }
  return false;
}

public boolean hasChildren ( ) { for ( int i = 0 ; i < ( arguments != null ? arguments . size ( ) : 0 ) ; i ++ ) { if ( getArgument ( i ) instanceof MathContainer ) { return true ; } } return false ; }
are there any arguments ?
