fixed introduced error in isAvailable for extract method