code: public static boolean has2DCoordinates(IAtomContainer container) {
  
          if (container == null || container.getAtomCount() == 0) return Boolean.FALSE;
  
          for (IAtom atom : container.atoms()) {
  
              if (atom == null || atom.getPoint2d() == null) return Boolean.FALSE;
  
          }
  
          return Boolean.TRUE;
  
      }
docs: Determines if all this {@link IAtomContainer}'s atoms contain 2D coordinates. If any atom
  is null or has unset 2D coordinates this method will return false.
  
  @param  container  the atom container to examine
  
  @return indication that all 2D coordinates are available
  
  @see org.openscience.cdk.interfaces.IAtom#getPoint2d()