Don't use two checks; Just check the base class