isAvailable in directive