Added check if lesson is hidden

Signed-off-by: Shivam Dixit <shivamd001@gmail.com>