Changed methodname hasElement to hasItem