Removed unused isEmpty method