Avoid outputting the error messsage ("PHP Warning:  in_array() expects parameter 2 to be array") in arrayToJSExcluding function of INTER-Mediator.php