Is depression a risk factor of worse response to therapy in epilepsy?

Is depression a risk factor of worse response to therapy in epilepsy?