code: public static boolean has2DCoordinates(IReaction reaction) {
          for (IAtomContainer mol : reaction.getReactants().atomContainers())
              if (!has2DCoordinates(mol))
                  return false;
          for (IAtomContainer mol : reaction.getProducts().atomContainers())
              if (!has2DCoordinates(mol))
                  return false;
          for (IAtomContainer mol : reaction.getAgents().atomContainers())
              if (!has2DCoordinates(mol))
                  return false;
          return true;
      }
docs: Determine if all parts of a reaction have coodinates
  
  @param reaction a reaction
  @return the reaction has coordinates