Does a numeric object consist of only zeros and ones?
is_binary(x)
x
a numeric object
a logical value