public boolean isGroupExist(@NonNull final Group group) {
        for (final Group grp : groups) {
            if (group.getAddress() == grp.getAddress()) {
                return true;
            }
        }
        return false;
    }
Returns true if a group exists with the given group. This is checked against the group address.

@param group Group to check
mesh/src/main/java/no/nordicsemi/android/mesh/MeshNetwork.java