Fixes the comment for hasDeclaration.