rework is_available function for product