Exception:array_replace(): Argument #2 must be of type array, true given