just changed the isEmpty function