def is_product_bookable(
        product_code: str,
        availability: bool,
        durability: int,
    ) -> bool:                                                                  # noqa E125
    """Checks if a product is available for booking
    """
    # Quick and dirty check
    if availability and durability > 0:
        return True
    else:
        return False