Avoid error logs in selenium tests by ensuring variables expected to be arrays are arrays.