Plus, I think the naming of the variable is not the best choice. Like stated in the stackoverflow discussion, you can't find out if it actually is a touch *device*, but only if touch *events* are supported. I would suggest to rename the variable to something like `supportsTouch` or `isTouch`.