Issue #114 Fixed condition in checkAvailable