why not also test `instanceof` like in lines 14 and 15?