def has_returns(token):
    """Returns true if the token contains any return statements"""
    for i in token.tokens:
        if i.lexeme == "return" or has_returns(i):
            return True
    return False