On Julia master branch (to be Julia 1.7) at the moment,
isnothing(x) = x === nothing
Previously (Julia 1.1 to 1.6, inclusive) it was
isnothing(::Any) = false isnothing(::Nothing) = true