I don't believe that checking a boolean value with `empty()` was correct.