Switched syntax of inheritance check