check availability for template