added presence check for the names of lessons and chapters