Check if nested if for braces.py