I have added a check before use the context. Is it OK ?