Changed empty to isEmpty