Initial port of ListContains condition to 8.x

always use verbose, readable variable names -> $item