overload __nonzero__ in cdbf