replace "[]" with "nil".