Basic error handling

Check to see if the item/id is valid