Undo the is_a check in favor of an instanceof check