Fixes empty array unwrapping.