How to search for an element in an array

I am trying to use a zone around my house with the person.xyz attribute array to determine who is home.

I am currently using the zone to detect if the house is occupied or not, but I would like to add more logic to it to change automations based on if specific people are home. I want to use the array of persons that is inside the payload of the zone entity to made choices. In order to do that I need a way to search if an element is in the array or if an element is not in the array.

So far I have been able to use the switch node to search if an element is in the array, but I cannot search to see if an element is not in the array.

Here is what I have so far.

[{"id":"987bf3df0fa8b61d","type":"api-current-state","z":"fb29e58f011f5e34","name":"","server":"58bff01.29ea91","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is_not","entity_id":"zone.home","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"people","propertyType":"msg","value":"data.attributes.persons","valueType":"jsonata"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":330,"y":1120,"wires":[["335e6f45a261e80a"]]},{"id":"df9c6157d8539c6e","type":"inject","z":"fb29e58f011f5e34","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":1120,"wires":[["987bf3df0fa8b61d"]]},{"id":"38e70424fe2c9a71","type":"debug","z":"fb29e58f011f5e34","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":680,"y":1120,"wires":[]},{"id":"335e6f45a261e80a","type":"switch","z":"fb29e58f011f5e34","name":"","property":"people","propertyType":"msg","rules":[{"t":"cont","v":"personName","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":530,"y":1120,"wires":[["38e70424fe2c9a71"]]},{"id":"58bff01.29ea91","type":"server","name":"Home Assistant","addon":true}]

I am hoping someone can provide a little guidance on the best way to handle this. It is a little tricky because want different things to happen if different people are home alone vs home with someone else etc.

[{"id":"d12668e48cdc08a0","type":"inject","z":"c89d915bdff0f798","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":188,"y":1232,"wires":[["84c2e2f3ee61b395"]]},{"id":"84c2e2f3ee61b395","type":"api-current-state","z":"c89d915bdff0f798","name":"","server":"","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"zone.home","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"\"person.jason\" in $entity().attributes.persons","valueType":"jsonata"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":398,"y":1232,"wires":[["97671812fdcdfca6"]]},{"id":"97671812fdcdfca6","type":"debug","z":"c89d915bdff0f798","name":"debug 58","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":612,"y":1232,"wires":[]},{"id":"a6fb5de85f470b7b","type":"inject","z":"c89d915bdff0f798","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":188,"y":1280,"wires":[["3d12d96d40b1e8b7"]]},{"id":"3d12d96d40b1e8b7","type":"api-current-state","z":"c89d915bdff0f798","name":"","server":"","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"zone.home","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":398,"y":1280,"wires":[["c2230f6faf6d0cdb"]]},{"id":"e92baf13456eba5c","type":"debug","z":"c89d915bdff0f798","name":"debug 59","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1036,"y":1280,"wires":[]},{"id":"0ec396905c3f5eb2","type":"split","z":"c89d915bdff0f798","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":766,"y":1280,"wires":[["845a498ae5766074"]]},{"id":"845a498ae5766074","type":"switch","z":"c89d915bdff0f798","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"person.jason","vt":"str"},{"t":"eq","v":"person.two","vt":"str"},{"t":"eq","v":"person.three","vt":"str"}],"checkall":"true","repair":true,"outputs":3,"x":898,"y":1280,"wires":[["e92baf13456eba5c"],[],[]]},{"id":"c2230f6faf6d0cdb","type":"change","z":"c89d915bdff0f798","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"data.attributes.persons","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":608,"y":1280,"wires":[["0ec396905c3f5eb2"]]}]

Awesome! Thank you.

Still trying to figure out some of this Node Red stuff. It is close to ladder logic, but so far.