Take a look at the isEmpty method