Yes, several states now consider the “intent” - as evidenced by the foil in the backpack - to constitute burglary which is a felony rather than a misdemeanor theft if intent is not a factor.
I assume the “reasoning” behind that is that you can’t really tell if someone intended to steal something that was in their backpack unless they go to the measure of “foiling” the alarm system...