Update in the demo function

Demo function changed to demonstrate the isAvailable function