add hasItems method