[FIX] Fix improper use of empty().