updated ObjectRefToBoolean to support invert parameter

Added CollectionEmptyToBool