Ensure this is always an array to avoid a PHP error from foreach.