private static boolean has3DCoordinates(List<IBond> bonds) {
        for (IBond bond : bonds) {
            if (bond.getBegin().getPoint3d() == null || bond.getEnd().getPoint3d() == null) return false;
        }
        return true;
    }
private static boolean has3DCoordinates ( List < IBond > bonds ) { for ( IBond bond : bonds ) { if ( bond . getBegin ( ) . getPoint3d ( ) == null || bond . getEnd ( ) . getPoint3d ( ) == null ) return false ; } return true ; }
Check if all atoms in the bond list have 3D coordinates. There is some
redundant checking but the list will typically be short.

@param bonds the bonds to check
@return whether all atoms have 2D coordinates