ERROR for missing value where TRUE/FALSE needed