adding isEmpty method