I did this on purpose to mimic `isinstance` but I knew this could be controversial