`instanceof` would be more common in this case.