This takes the current item of the user. If the user switched items before it landed, this might not work. There is a NMS function in the arrow.getHandle() which returns if it is on fire. (isBurning()). You might want to use EntityCombustByEntityEvent however