removed colon from isNestingCheck