http://php.net/manual/en/function.in-array.php 

First argument should probably be a string, I think this should be?
 if (in_array($role, $xacml_roles) && !$user_or_role) {