Insomnia and poor sleep quality are associated with poor seizure control in patients with epilepsy.