added controller.empty()