Add a helper function for sysfs array stores