Removed the isEmpty reference (not needed anymore)