isEmpty method