An easier way would be to make sure point is at the starting [ and then just call forward-sexp and see if you end up on the other side of oldpoint.