isJust package:sbv

Check if the symbolic value is not nothing.
>>> isJust (sNothing :: SMaybe Integer)
False

>>> isJust (sJust (literal "yep"))
True

>>> prove $ \x -> isJust (sJust (x :: SInteger))
Q.E.D.