[enhancement] added isEmpty() method