modified has item method