Better to check explicitly for `dimension is None`, since an empty list is also false.