Don't check if list is empty with len function. Do:    if self.controllers:    instead