'Assures size of every row in dataset is of proper proportions.'

def _validate(self, row=None, col=None, safety=False):

    if row:
        is_valid = ((len(row) == self.width) if self.width else True)
    elif col:
        if (len(col) < 1):
            is_valid = True
        else:
            is_valid = ((len(col) == self.height) if self.height else True)
    else:
        is_valid = all(((len(x) == self.width) for x in self._data))
    if is_valid:
        return True
    else:
        if (not safety):
            raise InvalidDimensions
        return False
