Avoid error log by not using array function on non-array.