I will extract the check for "isInvalidValue" but I suggest that you have a look at my DataHandler proposal. If we would integrate it, the complicated checks for bars / errorBars / customBars would be completely obsoleted and  the check would only be one line since all sorts of data would have the same format.