Node Js Check If Element Exists In Array In Php