Added an extra check to make sure super will skip over parent classes that do not define anything.