What about `else if (cursor ... ) {` ?