def is_cn_optional(self):
        """
        Parse the options to find whether common name is treated as an optional field.
        Returns False if option is not available
        """
        if not self.options:
            return False

        options_array = json.loads(self.options)
        if isinstance(options_array, list):
            for option in options_array:
                if "name" in option and option["name"] == 'cn_optional':
                    return option["value"]

        return False

        Parse the options to find whether common name is treated as an optional field.
        Returns False if option is not available
        
lemur/authorities/models.py