Why not use isEmpty() method?