def isProfileSetting(name):
 global settingsDictionary
 if ((name in settingsDictionary) and settingsDictionary[name].isProfile()):
  return True
 return False

def isProfileSetting ( name ) : global settingsDictionary if ( ( name in settingsDictionary ) and settingsDictionary [ name ] . isProfile ( ) ) : return True return False
check if a certain key name is actually a profile value .