Use instanceof instead of __proto__