def bool_prop(self, attr_name):
        """
        Return the boolean value of the attribute having *attr_name*, or
        |False| if not present.
        """
        value = getattr(self, attr_name)
        if value is None:
            return False
        return value
Return the boolean value of the attribute having *attr_name*, or
        |False| if not present.