It looks like this like should be combined with the the 'else if' below so that the container column is still cleared.
`if (!element.getData('exists') || machines.length === 0) {...`