what about `if (current->getNameAsString() == className) return true;` ?