Please check the code where you wrote array_intersect.
array_intersect function return null array if it doesn’t find any match. So your condition checking using !array_intersect is invalid.
Please check the code where you wrote array_intersect.
array_intersect function return null array if it doesn’t find any match. So your condition checking using !array_intersect is invalid.