Give this a bash, What I have done is dropped the itemlist node and used the array as it is and used the indexOf method which returns -1 if it doesn’t exist and the array index (0+) if it does. So if this value is 0 or more we know it is a day off and anything else would be a normal day.