testing has function
UPDATING changing the isEmpty function to Barbossa Object