add check for all empty, plus $topic