Fixed for old form where conditions array does not exists

Now this is made backward compatible for older forms .