The entitySelection.isAlterable( ) method returns True if the entity selection is alterable and False otherwise (see Shareable vs Alterable entity selections).
You are about to display Form.products in a list box to allow the user to add new products. You want to make sure it is alterable so that the user can add new products without error:
If(Not(Form.products.isAlterable()))
Form.products:=Form.products.copy()
End if
...
Form.products.add(Form.product)