Test (and fix) the "empty?" function

This may need to be revised if it conflicts with any sexp changes, but I think those are not yet in flight