check for empty line at end of lesson