Added a check to see if lesson is there