<filename>aws_iam_policies/aws_root_account_mfa.py
def policy(resource):
    # Explicit check for True as the value may be None, and we want to return a bool not a NoneType
    return resource['CredentialReport']['MfaActive'] is True

<filename>aws_iam_policies/aws_root_account_mfa.py
def policy(resource):
    # Explicit check for True as the value may be None, and we want to return a bool not a NoneType
    return resource['CredentialReport']['MfaActive'] is True

# Explicit check for True as the value may be None, and we want to return a bool not a NoneType