def is_present(p):
    """
    Given a parser or string, make a parser that returns
    True if the parser matches, False otherwise
    """
    return lexeme(p).optional().map(lambda v: False if v is None else True)
Given a parser or string, make a parser that returns
    True if the parser matches, False otherwise