You should move this `empty?` check up above the `<ul>`