def r_sa_check(template, tag_type, is_standalone):
    """Do a final checkto see if a tag could be a standalone"""
    if is_standalone and tag_type not in ['variable', 'no escape']:
        on_newline = template.split('\n', 1)
        if on_newline[0].isspace() or not on_newline[0]:
            return True
        else:
            return False
    else:
        return False
