The comment in this function confused me, so I updated it to clarify that `isClass()` is not true for un-named classes. Also, I took the opportunity to use a helper method to simplify the function itself. PR Close #36989
The comment in this function confused me, so I updated it to clarify that `isClass()` is not true for un-named classes. Also, I took the opportunity to use a helper method to simplify the function itself. PR Close #36989