[FOLLOWUP][BUGFIX] Respect interfaces as well when checking class existence