Replaced bulletType check with instanceof