Implementing the checkForItems( ) method