Check if an object is not infinite
not_infinite(a)
a
Object to check
TRUE or FALSE
TRUE
FALSE
not_infinite(Inf) not_infinite(1)