Prevent errors with non-arrays