Added error checking for no lessons/lesson body