Make sure item to process is not undefined