boolean checkForSimilarName(String name) {
        ArrayList < Client > il = new ArrayList < Client > ();
        for (int i = 0; i < clients.size(); i++) {
            il.add(clients.get(i));
        }
        for (int i = 0; i < channels.size(); i++) {
            ArrayList < Client > templ = channels.get(i).getUsers();
            for (int k = 0; k < templ.size(); k++) {
                il.add(templ.get(k));
            }
        }
        for (Client cl: il) {
            if (cl.getName() != null) {
                if (cl.getName().equalsIgnoreCase(name)) {
                    return false;
                }
            }
        }
        return true;
    }