remove a PHP notice (the value of a property is sometimes an array or different from something that can be casted into a string)