PHP - Sanitize a multidimensional array