It would cause less problems if you don't check for /obj/item/weapon.