Adding the isEmpty function into the modelMethods