why "still"? i would move that inside the if and say "// document already mapped -> check class"