Removed function isEmpty