If a module is already installed, puppet gives an error message in an "error" attribute, so line 221 would be False.